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
}
Observable<boolean>
Default | – |
---|---|
Description | The loading state for getting best selling products. |
Observable<DaffProduct[]>
Default | – |
---|---|
Description | Best selling products. |
void
Dispatches an action to the rxjs action stream.
Parameter | action: Action |
---|---|
Description |