@spartacus/storefront
Version:
Spartacus Storefront is a package that you can include in your application, which allows you to add default storefront features.
24 lines (23 loc) • 1.13 kB
TypeScript
import { Router } from '@angular/router';
import { PageContext } from '@spartacus/core';
import { CmsComponentsService } from './cms-components.service';
import * as i0 from "@angular/core";
export declare class CmsRoutesImplService {
private router;
private cmsComponentsService;
constructor(router: Router, cmsComponentsService: CmsComponentsService);
private cmsRouteExists;
/**
* Contains Cms driven routing logic intended for use use in guards, especially in canActivate method.
*
* Will return true, when logic wont have to modify routing (so canActivate could be easily resolved to true)
* or will return false, when routing configuration was updated and redirection to newly generated route was initiated.
*
* @param pageContext
* @param currentUrl
*/
handleCmsRoutesInGuard(pageContext: PageContext, componentTypes: string[], currentUrl: string, currentPageLabel: string): boolean;
private updateRouting;
static ɵfac: i0.ɵɵFactoryDeclaration<CmsRoutesImplService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<CmsRoutesImplService>;
}