GitHub

DaffProductGridFacade

A facade for accessing state for a list of products from an application component.

import { DaffProductGridFacade } from '@daffodil/product/state'
@Injectable()
class DaffProductGridFacade<<T extends DaffProduct = DaffProduct>>  implements DaffProductGridFacadeInterface<T> {
  loading$: Observable<boolean>
  products$: Observable<T[]>
  dispatch(action: Action<string>)
}

Properties

Name Type Description
loading$ Observable<boolean>

The loading state for retrieving a list of products.

products$ Observable<T[]>

The state for a list of products.

dispatch