core/router/router.service.ts
A service which defines routes for the application. You can use HOOK_ROUTES or pass
ExtensionPointWithoutStateForPlugins
Properties |
Methods |
|
constructor(rootInjector: Injector, router: Router, contextRouteService: ContextRouteService, plugins: PluginsResolveService, options: OptionsService)
|
||||||||||||||||||
Parameters :
|
addRoute | ||||||||
addRoute(route: Route | Route[])
|
||||||||
Add a new route to the router configuration or a context.
Parameters :
Returns :
void
|
getHref | |||||||||||||||
getHref(groupOrDevice: IManagedObject, prefix: string)
|
|||||||||||||||
Determines if the given MO is an group or an device and returns the correct href to link correctly to that MO.
Parameters :
Returns :
string
|
refresh |
refresh()
|
Refresh the current context
Returns :
void
|
Protected setupItemsObservable |
setupItemsObservable()
|
Returns :
Observable<Route[]>
|
Public router |
Type : Router
|
Readonly state |
Default value : new Map<string, Route>()
|
factories |
Type : ExtensionFactory<T>[]
|
Default value : []
|
Protected injectors |
Type : Injector[]
|
All injectors to search for an extension. |
items$ |
Type : Observable<T[]>
|
Readonly refresh$ |
Type : Observable<void>
|