UNPKG

@spartacus/core

Version:

Spartacus - the core framework

36 lines (35 loc) 1.16 kB
import { RoutesConfig } from '../routes-config'; import * as i0 from "@angular/core"; export declare const enum RouteLoadStrategy { /** * Don't reload the data on navigation if it was loaded before */ ONCE = "once", /** * Always reload the data on navigation */ ALWAYS = "always" } export declare abstract class RoutingConfig { routing?: RoutingConfigDefinition; static ɵfac: i0.ɵɵFactoryDeclaration<RoutingConfig, never>; static ɵprov: i0.ɵɵInjectableDeclaration<RoutingConfig>; } export interface RoutingConfigDefinition { /** * Configuration of semantic routes. Key is route's name. Value is the config specific to this route. */ routes?: RoutesConfig; /** * When true, it closes the storefront for unauthorized users, except from routes that have individual config flag `protected: false` */ protected?: boolean; /** * Global load strategy which is used as a fallback for loading data on each navigation */ loadStrategy?: RouteLoadStrategy; } declare module '../../../config/config-tokens' { interface Config extends RoutingConfig { } }