projects/storefrontlib/cms-components/product/product-list/model/product-list-item-context-source.model.ts
Context source for ProductListItemComponent.
ProductListItemContext should be injected instead in child components.
Properties |
|
| Readonly product$ |
Default value : new ReplaySubject<Product>(1)
|
|
Inherited from
ProductListItemContext
|
|
Defined in
ProductListItemContext:13
|
import { Injectable } from '@angular/core';
import { Product } from '@spartacus/core';
import { ReplaySubject } from 'rxjs';
import { ProductListItemContext } from './product-list-item-context.model';
/**
* Context source for `ProductListItemComponent`.
*
* `ProductListItemContext` should be injected instead in child components.
*/
@Injectable()
export class ProductListItemContextSource extends ProductListItemContext {
readonly product$ = new ReplaySubject<Product>(1);
}