File

core/router/context-route.service.ts

Index

Methods

Constructor

constructor(tabsResolver: RouterTabsResolver, tabsService: TabsService, router: Router, apiService: ApiService, injector: Injector)
Parameters :
Name Type Optional
tabsResolver RouterTabsResolver No
tabsService TabsService No
router Router No
apiService ApiService No
injector Injector No

Methods

destroy
destroy()
Returns : void
getContextData
getContextData(activatedRoute: ActivatedRoute)

Resolves the current context data. If no context was found, null is returned.

Parameters :
Name Type Optional Description
activatedRoute ActivatedRoute No

The current activated route.

Returns : ContextData
init
init(route: ActivatedRoute)
Parameters :
Name Type Optional
route ActivatedRoute No
Returns : void
refreshContext
refreshContext()
Returns : void
setContext
setContext(activatedRoute: ActivatedRoute, contextData: IIdentified)

Sets a new contextData in the ActivatedRoute.

Parameters :
Name Type Optional Description
activatedRoute ActivatedRoute No

The current activated route.

contextData IIdentified No

New contextData.

Returns : void
updatedContext
updatedContext(route: ActivatedRoute)
Parameters :
Name Type Optional
route ActivatedRoute No

results matching ""

    No results matching ""