projects/congarevenuecloud/ecommerce/src/lib/modules/catalog/services/product-feature-value.service.ts
This service is a work in progress. The service is responsible for fetching the product feature values.
import { ProductFeatureValueService, AObjectService} from '@congarevenuecloud/ecommerce';
export class MyComponent implements OnInit{
constructor( private productFeatureValueService: ProductFeatureValueService)
}
// or
export class MyService extends AObjectService {
private productFeatureValueService: ProductFeatureValueService = this.injector.get(ProductFeatureValueService);
}
AObjectService
Properties |
Methods |
getProductFeatureValues | ||||||
getProductFeatureValues(productList: Array<Product> | Array<string>)
|
||||||
Decorators :
@memoize()
|
||||||
This method fecthes the feature values for the list of products. Example:Example :
Parameters :
Returns :
Observable<Array<ProductFeatureValue>>
an observable of Array of ProductFeatureValue object. |
type |
Default value : ProductFeatureValue
|