DaffCategoryFacadeInterface

A facade for interacting with the category state. This facade exposes many parts of the state for easy access and allows dispatching of actions.

Properties

Name Type Description
category$ Observable<V> The currently selected category.
products$ Observable<W[]> Products of the current category.
isCategoryEmpty$ Observable<boolean> Is the category page empty of products.
getCategoryById Observable<V> Get a category by the provided Id.
getProductsByCategory Observable<W[]> Get products by a category Id.
getTotalProductsByCategory Observable<number> Get products by a category Id.
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.