UNPKG

@spartacus/storefront

Version:

Spartacus Storefront is a package that you can include in your application, which allows you to add default storefront features.

20 lines (19 loc) 837 B
import { ProductService, SemanticPathService } from '@spartacus/core'; import { Observable } from 'rxjs'; import { ProductCarouselItem } from './product-carousel.model'; import * as i0 from "@angular/core"; export declare class ProductCarouselService { protected productService: ProductService; protected semanticPathService: SemanticPathService; constructor(productService: ProductService, semanticPathService: SemanticPathService); /** * Loads the product data and converts it `CarouselItem`. */ loadProduct(code: string): Observable<ProductCarouselItem>; /** * Converts the product to a generic CarouselItem */ private convertProduct; static ɵfac: i0.ɵɵFactoryDeclaration<ProductCarouselService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ProductCarouselService>; }