GitHub

DaffBestSellersFacade

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

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

@Injectable()
class DaffBestSellersFacade<<T extends DaffProduct = DaffProduct>>  implements DaffStoreFacade<Action> {
  loading$: Observable<boolean>
  bestSellers$: Observable<DaffProduct[]>

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

Properties

loading$
Observable<boolean>
Default
Description

The loading state for getting best selling products.

bestSellers$
Observable<DaffProduct[]>
Default
Description

Best selling products.

() Methods

dispatch
void

Dispatches an action to the rxjs action stream.

Parameters
Parameteraction: Action
Description