UNPKG

@spartacus/storefront

Version:

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

15 lines (14 loc) 799 B
import { Injector } from '@angular/core'; import { RouterStateSnapshot, UrlTree } from '@angular/router'; import { CmsActivatedRouteSnapshot } from '@spartacus/core'; import { Observable } from 'rxjs'; import { CmsComponentsService } from './cms-components.service'; import * as i0 from "@angular/core"; export declare class CmsGuardsService { protected cmsComponentsService: CmsComponentsService; protected injector: Injector; constructor(cmsComponentsService: CmsComponentsService, injector: Injector); cmsPageCanActivate(componentTypes: string[], route: CmsActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree>; static ɵfac: i0.ɵɵFactoryDeclaration<CmsGuardsService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<CmsGuardsService>; }