core/router/context-route.service.ts
Properties |
Methods |
constructor(tabsResolver: RouterTabsResolver, tabsService: TabsService, router: Router, apiService: ApiService, injector: Injector)
|
||||||||||||||||||
Parameters :
|
destroy |
: Use ScopedContextRouteService instead. Will be removed in 10.22 |
destroy()
|
Returns :
void
|
getContextData | ||||||||
getContextData(activatedRoute: ActivatedRoute | ActivatedRouteSnapshot)
|
||||||||
Resolves the current context data. If no context was found, null is returned.
Parameters :
Returns :
| null
|
getContextRoute | ||||||||
getContextRoute(contextData: ContextData)
|
||||||||
Returns a route for the given ContextData.
Parameters :
Returns :
string
A route with the ids set correctly. |
getRootContextOfChild | ||||||
getRootContextOfChild(currentRoute: ActivatedRoute)
|
||||||
Gets the rootContext from the deepest child route in the hierarchy. Traverses the route tree from activatedRoute to find the furthest child route that exists. Then extracts the rootContext from that route's configuration.
Parameters :
Returns :
any
The rootContext value from the deepest route, or undefined if not found |
init | ||||||
: Use ScopedContextRouteService instead. Will be removed in 10.22 | ||||||
init(route: ActivatedRoute)
|
||||||
Parameters :
Returns :
void
|
isContextRoute | |||||||||||||||
isContextRoute(url: string, contextToCheck: ViewContext[])
|
|||||||||||||||
Verifies if a given url is a view context route.
Parameters :
Returns :
boolean
true if the given url is a view context route. |
refreshContext |
refreshContext()
|
Reloads all ViewContexts.
Returns :
void
|
setContext | ||||||||||||
setContext(activatedRoute: ActivatedRoute, contextData: IIdentified)
|
||||||||||||
Sets a new contextData in the ActivatedRoute.
Parameters :
Returns :
void
|
updatedContext | ||||||
: Use ScopedContextRouteService instead. Will be removed in 10.21 | ||||||
updatedContext(route: ActivatedRoute)
|
||||||
Parameters :
Returns :
Observable<ApiCall>
|
activatedContextData |
Type : ContextData
|
Default value : null
|
Last context data snapshot |
refreshTrigger$ |
Default value : new Subject<void>()
|