core/router/router.service.ts
A service which defines routes
Properties |
|
Methods |
constructor(injector: 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 : []
|
items$ |
Type : Observable<Route[]>
|
Readonly refreshTrigger |
Default value : new Subject()
|
Public router |
Type : Router
|
Readonly state |
Default value : new Map<string, Route>()
|