File

core/router/scoped-context-route.service.ts

Description

A service which is injected into the context route component to handle the context data.

Index

Methods

Constructor

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

Methods

init
init(route: ActivatedRoute)

Initializes the context route.

Parameters :
Name Type Optional Description
route ActivatedRoute No

The current activated route.

Returns : void
isLoading$
isLoading$()

Indicates that the data is loading

Returns : Observable<boolean>

An boolean observable which indicates if the data is loading.

ngOnDestroy
ngOnDestroy()

Destroys the service.

Returns : void
refreshContext
refreshContext()

Refreshes the context.

Returns : void

results matching ""

    No results matching ""