GitHub

DaffBestSellersFacade

A facade for accessing best sellers state from an application component.

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

Properties

Name Type Description
loading$ Observable<boolean>

The loading state for getting best selling products.

bestSellers$ Observable<DaffProduct[]>

Best selling products.

dispatch

Dispatches an action to the rxjs action stream.