File

src/core/services/smart-loading-screen.service.ts

Index

Properties
Methods

Constructor

constructor(serviceAdapter: SmartServiceAdapter, route: ActivatedRoute, smartConfig: SmartConfig, navigService: SmartNavigationService, smartHttp: SmartHttpService, errorHandler: SmartErrorHandlerService, dialogService: SmartDialogService, router: Router)
Parameters :
Name Type Optional
serviceAdapter SmartServiceAdapter No
route ActivatedRoute No
smartConfig SmartConfig No
navigService SmartNavigationService No
smartHttp SmartHttpService No
errorHandler SmartErrorHandlerService No
dialogService SmartDialogService No
router Router No

Methods

Public Async configureRouter
configureRouter()

Configures the router with additional routes that are fetched from the backend.

Returns : unknown
Public fallbackToLogin
fallbackToLogin()
Returns : void
Public Async getAppRoutes
getAppRoutes()

Fetches NG Routes configuration from the backend

Returns : Promise<Route[]>

{Promise<Route[]>}

Public Async initWithInjector
initWithInjector(injector: Injector)

Initializes the service with an injector instance.

Parameters :
Name Type Optional Description
injector Injector No

provided by the SmartAppLoadingScreenComponent

Returns : any
Public refresh
refresh(route: unknown)

Refreshes the current route when in SDI

Parameters :
Name Type Optional Default value
route unknown No this.url
Returns : any
Public refreshMdi
refreshMdi()

Refreshes the current route when in MDI

Returns : void
Public setLoginRoute
setLoginRoute()

Adds the built-in login route to the router config.

Returns : void

Properties

Public appLoading
Type : unknown
Default value : false

results matching ""

    No results matching ""