File

core/router/context-route.service.ts

Index

Properties
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 | ActivatedRouteSnapshot)

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

Parameters :
Name Type Optional Description
activatedRoute ActivatedRoute | ActivatedRouteSnapshot No

The current activated route.

Returns : | null
getContextRoute
getContextRoute(contextData: ContextData)
Parameters :
Name Type Optional
contextData ContextData No
Returns : string
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

Properties

activatedContextData
Type : ContextData
Default value : null

Last context data snapshot

results matching ""

    No results matching ""