projects/congarevenuecloud/elements/src/lib/mini-cart/services/mini-cart.service.ts
Mini Cart Service involves business logic of mini cart component to show lineitems added to cart.
import { MiniCartService, AObjectService} from '@congarevenuecloud/ecommerce';
export class MyComponent implements OnInit{
constructor( private miniCartService: MiniCartService)
}
// or
export class MyService extends AObjectService {
private miniCartService: MiniCartService = this.injector.get(MiniCartService);
}
Methods |
constructor(productConfigurationService: ProductConfigurationService, revalidateCartService: RevalidateCartService)
|
|||||||||
Parameters :
|