core/router/router.service.ts
A service which defines routes for the application. You can use HOOK_ROUTES or pass
Properties |
Methods |
constructor(rootInjector: Injector, router: Router, contextRouteService: ContextRouteService)
|
||||||||||||
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
|
factories |
Type : RouteExtension[]
|
Default value : []
|
injectors |
Type : []
|
Default value : [this.rootInjector]
|
items$ |
Type : Observable<Route[]>
|
All routes loaded via the HOOK_ROUTE hook. |
Readonly refreshTrigger |
Default value : new Subject()
|
Public router |
Type : Router
|
Readonly state |
Default value : new Map<string, Route>()
|