GitHub

DaffProductGridFacade

import { DaffProductGridFacade } from '@daffodil/product/state'

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

@Injectable()
class DaffProductGridFacade<<T extends DaffProduct = DaffProduct>>  implements DaffProductGridFacadeInterface<T> {
  loading$: Observable<boolean>
  products$: Observable<T[]>

  dispatch(action: Action<string>): void
}

Properties

loading$
Observable<boolean>
Default
Description

The loading state for retrieving a list of products.

products$
Observable<T[]>
Default
Description

The state for a list of products.

() Methods

dispatch
void
Parameters
Parameteraction: Action
Description