File

projects/storefrontlib/cms-components/product/product-list/model/product-list-item-context-source.model.ts

Description

Context source for ProductListItemComponent.

ProductListItemContext should be injected instead in child components.

Extends

ProductListItemContext

Index

Properties

Properties

Readonly product$
Default value : new ReplaySubject<Product>(1)
Inherited from ProductListItemContext
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);
}

result-matching ""

    No results matching ""