access | |||||||||
access(value: Record, path: string)
|
|||||||||
Parameters:
|
accessArrayProperty | |||||||||
accessArrayProperty(value, arrayPath: string)
|
|||||||||
Parameters:
|
isArrayIndexer | ||||||
isArrayIndexer(path: string)
|
||||||
Parameters:
Returns:
boolean
|
attemptToProduceAutoNavigationFunctionFor | |||||||||
attemptToProduceAutoNavigationFunctionFor(router: Router, composer?: RouteComposer)
|
|||||||||
Parameters:
Returns:
| undefined
|
createNavigationXFactoryProvider | ||||
createNavigationXFactoryProvider(route)
|
||||
Parameters:
Returns:
FactoryProvider
|
provideNavigatorsFor | ||||
provideNavigatorsFor(...routes: undefined)
|
||||
Parameters:
Returns:
FactoryProvider[]
|
provideRoutesX | ||||||
provideRoutesX(...routes: undefined)
|
||||||
Wraps Angular's
Parameters:
Returns:
Provider[]
The providers returned by |
breakdownTime | ||||||
breakdownTime(showingForMs: number)
|
||||||
Parameters:
|
durationToMs | ||||||
durationToMs(duration: DurationAnnotation)
|
||||||
Parameters:
Returns:
number
|
collectArrayRouteComposersByAutoNavigatioName | ||||
collectArrayRouteComposersByAutoNavigatioName(routes)
|
||||
Parameters:
|
collectRouteComposersByAutoNavigatorName | ||||
collectRouteComposersByAutoNavigatorName(route)
|
||||
Parameters:
|
extractArgsFromPath | ||||||
extractArgsFromPath(path: Path)
|
||||||
Parameters:
Returns:
RouteArgument[]
|
createDeeplyNestedRoutes | ||||||
createDeeplyNestedRoutes(segments)
|
||||||
Recoursively creates nested routes for the specified segments. Each specified segment will be a child route of its previous segment. ExampleRunning the function on /some
Parameters:
Returns:
Route
An Angular router module compatible route tree containing all segments as child routes. |
createLocalizedDeeplyNestedRoutes | ||||
createLocalizedDeeplyNestedRoutes(segments)
|
||||
Recoursively creates nested routes for the specified segments. Each specified segment will be a child route of its previous segment. Each created route will support 2 paths:
ExampleRunning the function on /some /en/ /some/en /some/route/en
Parameters:
Returns:
Route
|
isUrlLocalizationConfig | ||||||||
isUrlLocalizationConfig(value: any)
|
||||||||
Checks whether the given value is a url localization config object.
Parameters:
Returns:
UrlLocalizationConfig
|
localizeRoute | ||||||||
localizeRoute(route: Route)
|
||||||||
Recoursively adds an 'en' segment to all routes in the tree.
Parameters:
Returns:
void
|
setupUrlLocalizerTest | ||||||
setupUrlLocalizerTest(strategyOrConfig?)
|
||||||
Configures the testing module with localized routes for testing and language integration services.
Routes are created by running The function extracts services from the testbed and returns them in the returned object for quick deconstruction.
Parameters:
|
deepScanRoute | |||||||||||||||||||||||||
deepScanRoute(componentBus, route: ActivatedRouteSnapshot, process: RouteProcessFunction, levels: number)
|
|||||||||||||||||||||||||
Recoursively runs a processing function on the route and its children. Scan is done from parent to child, meaning the parent is the first to process.
Parameters:
Returns:
void
|
observeRouteDeepScan | |||||||||||||||
observeRouteDeepScan(route: ActivatedRouteSnapshot, componentBus, process: ObservedRouteProcessFunction, levels?: number)
|
|||||||||||||||
Parameters:
Returns:
Observable<TReturn>
|
useRouteDeepScan | |||||||||||||||
useRouteDeepScan(process: ObservedRouteProcessFunction, levels: number)
|
|||||||||||||||
Creates an observable which, upon navigation end, deep scans the activated route by running the provided processing function.
Parameters:
Returns:
Observable<TResult>
An observable which, upon navigation end, deep scans the activated route by running the provided processing function. |
firstUpper | ||||||
firstUpper(value: string)
|
||||||
Parameters:
Returns:
string
|
touchFirstLetter | ||||||||
touchFirstLetter(undefined: string, touch)
|
||||||||
Parameters:
Returns:
string
|
forceRoutingInsideAngularZone | ||||||||
forceRoutingInsideAngularZone(router: Router)
|
||||||||
Wraps the
Parameters:
Returns:
void
|
setupDocumentRefMock |
setupDocumentRefMock()
|
Configures a testing module provided with a ready-to-use mock for Any element created using Used when testing head related services (e.g. HeadService, LazyLoaderService). Internally, this plants the following structure in
The returned mocks can be deconstructed like so:
Example :
Returns:
literal type
|
generateRouteComposerName | ||||||
generateRouteComposerName(path: Path)
|
||||||
Parameters:
Returns:
GeneratedRouteComposerName<Path>
|
routeConfigFor |
routeConfigFor()
|
Creates a strongly-typed configurator for Angular routes. Call this with an entity, then generate a strongly typed Angular route config tree using one of the configurator's functions. Store the generated route somewhere and use
Returns:
RouteConfigurator<Entity>
An object which allows generating strongly typed routes. |
promiseLater |
promiseLater()
|
Creates a promise without which doesn't have the actual async code to resolve, and extracts its
Example :
Returns:
LatePromise<T>
An object containing the promise, anlong with its |
provideLanguageIntegration | ||||||||||||
provideLanguageIntegration(__namedParameters: {useFactory: LanguageIntegrationProvider, deps, urlLocalization})
|
||||||||||||
Generates language integration tokens and services to be provided in a module.
Used by
Parameters:
Returns:
Provider[]
An array of providers for language integration. |
provideRouterXConfig | ||||||
provideRouterXConfig(config?: RouterXConfig)
|
||||||
Creates a provider for the router-x module configuration.
Options not provided will be replaced with their default values according to
Parameters:
Returns:
Provider
|
provideUrlLocalization | ||||||||
provideUrlLocalization(config?: UrlLocalizationConfig)
|
||||||||
Creates the providers for the
Parameters:
Returns:
Provider[]
The providers for the |
provideUrlLocalizer | ||||||||
provideUrlLocalizer(config: UrlLocalizationConfig)
|
||||||||
Creates the appropriate DI compatible provider for the
Parameters:
Returns:
ClassProvider | FactoryProvider
A DI compatible provider for the |
useActivatedRouteComponent |
useActivatedRouteComponent()
|
Creates an observable which emits the latest component instance for the currently activated route. An observable which emits the component instance for the currently activated route. |
useRouterOutletStateTracker |
useRouterOutletStateTracker()
|
Creates an observable which emits the latest state of the published router outlets in the app. The emitted state is a dictionary of outlet names and corresponding component instances.
Returns:
Observable<Map<string, AnyObject | null>>
An observable which emits the latest state of the published router outlets in the app. |
useNavigationX | ||||
useNavigationX(route)
|
||||
Injects the auto-generated strongly-typed navigation service for the specified route tree. For this to work, the route must be previously generated using To change the default composed name of a specific auto-generated navigation method, go to the corresponding
route config and add the
Parameters:
|
useRouterEvent | ||||||||
useRouterEvent(eventType: Type)
|
||||||||
Creates an observable which emits only the specified routing event.
Parameters:
Returns:
Observable<T>
An observable which emits only the specified routing event. |
useRouterEvents | ||||
useRouterEvents(...eventTypes: undefined)
|
||||
Creates an observable which emits only the specified router events.
Parameters:
Returns:
Observable<TypeInstance<>>
An observable which emits only the specified router events. |
windowFactory | ||||||
windowFactory(platformId: any)
|
||||||
Provides a platform dependant implementation for retrieving the
Parameters:
Returns:
Window | Object
|
wrapInMacroTask | |||||||||
wrapInMacroTask(observable: Observable, macroTaskNamePrefix: string)
|
|||||||||
Parameters:
Returns:
Observable<T>
|