import { DaffProductPageFacade } from '@daffodil/product/state'
A facade for getting state about a particular product.
@Injectable()
class DaffProductPageFacade<<T extends DaffProduct = DaffProduct>> implements DaffProductPageFacadeInterface<T> {
loadingState$: Observable<DaffState>
loading$: Observable<boolean>
mutating$: Observable<boolean>
resolving$: Observable<boolean>
errors$: Observable<DaffStateError[]>
hasErrors$: Observable<boolean>
product$: Observable<T>
dispatch(action: Action<string>): void
}
Observable<DaffState>
Default | – |
---|---|
Description |
Observable<boolean>
Default | – |
---|---|
Description |
Observable<boolean>
Default | – |
---|---|
Description |
Observable<boolean>
Default | – |
---|---|
Description |
Observable<DaffStateError[]>
Default | – |
---|---|
Description |
Observable<boolean>
Default | – |
---|---|
Description |
Observable<T>
Default | – |
---|---|
Description | The product loaded for the product page. |
void
Parameter | action: Action |
---|---|
Description |