File

projects/apttus/ecommerce/src/lib/modules/store/services/storefront.service.ts

Description

The storefront record is the backbone to the customer experience. It drives catalog, pricing and interface.

Extends

AObjectService

Index

Properties
Methods

Methods

active
active()
Returns : Observable<Object>
getStorefront
getStorefront()

Retrieves the storefront record

Example:

   import { StorefrontService, Storefront } from '@apttus/ecommerce';
   import { Observable } from 'rxjs/Observable';

   export class MyComponent implements OnInit{
    storefront: Storefront;
    storefront$: Observable<Storefront>;

    constructor(private storefrontService: StorefrontService){}

    ngOnInit(){
        this.storefrontService.getStorefront().subscribe(s => this.storefront = s);
        // or
        this.storefront$ = this.storefrontService.getStorefront();
    }
}

an Observable containing the storefront record

onInit
onInit()
Returns : void
refresh
refresh()
Returns : void

Properties

type
Default value : Storefront

result-matching ""

    No results matching ""