File

core/router/router.service.ts

Description

A service which defines routes

Index

Properties
Methods

Constructor

constructor(injector: Injector, router: Router, contextRouteService: ContextRouteService)
Parameters :
Name Type Optional
injector Injector No
router Router No
contextRouteService ContextRouteService No

Methods

addRoute
addRoute(route: Route | Route[])

Add a new route to the router configuration or a context.

Parameters :
Name Type Optional Description
route Route | Route[] No

The route to add

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 :
Name Type Optional Default value Description
groupOrDevice IManagedObject No

The MO of a group or the device.

prefix string No '#/'

How should the link be prefixed.

Returns : string
refresh
refresh()

Refresh the current context

Returns : void

Properties

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>()

results matching ""

    No results matching ""