File

projects/storefrontlib/cms-structure/services/cms-routes.service.ts

Index

Methods

Methods

Abstract handleCmsRoutesInGuard
handleCmsRoutesInGuard(pageContext: PageContext, componentTypes: string[], currentUrl: string, currentPageLabel: string)
Parameters :
Name Type Optional
pageContext PageContext No
componentTypes string[] No
currentUrl string No
currentPageLabel string No
Returns : boolean
import { Injectable } from '@angular/core';
import { PageContext } from '@spartacus/core';
import { CmsRoutesImplService } from './cms-routes-impl.service';

// Public injection token for the private implementation of the service `CmsRoutesImplService`.
// After #7070, this class should be replaced with a real implementation.
@Injectable({
  providedIn: 'root',
  useExisting: CmsRoutesImplService,
})
export abstract class CmsRoutesService {
  abstract handleCmsRoutesInGuard(
    pageContext: PageContext,
    componentTypes: string[],
    currentUrl: string,
    currentPageLabel: string
  ): boolean;
}

result-matching ""

    No results matching ""