src/app/modules/shared/services/navigation-helper/navigation-helper.service.ts
Properties |
|
Methods |
|
Accessors |
constructor(router: Router, activatedRoute: ActivatedRoute, cacheService: CacheService, utilService: UtilService)
|
|||||||||||||||
Parameters :
|
Public clearHistory |
clearHistory()
|
Returns :
void
|
emitFullScreenEvent | ||||
emitFullScreenEvent(value)
|
||||
Parameters :
Returns :
void
|
Public getDesktopPreviousUrl |
getDesktopPreviousUrl()
|
Returns :
UrlHistory
|
Public getPageLoadTime |
getPageLoadTime()
|
Returns :
number
|
Public getPreviousUrl |
getPreviousUrl()
|
returns PreviousUrl
Returns :
UrlHistory
|
goBack |
goBack()
|
Returns :
void
|
handleContentManagerOnFullscreen | ||||
handleContentManagerOnFullscreen(value)
|
||||
Parameters :
Returns :
void
|
handlePrevNavigation |
handlePrevNavigation()
|
Returns :
void
|
initialize |
initialize()
|
initialize storeUrlHistory function to store routing history. Add callback function for window.onunload to store previous url.
Returns :
void
|
navigateToLastUrl |
navigateToLastUrl()
|
Returns :
void
|
Public navigateToPreviousUrl | ||||||||
navigateToPreviousUrl(defaultUrl: string)
|
||||||||
Navigates to previous Url moved logic to subject subscription to prevent, multiple navigation if user click close multiple time before navigation trigers
Parameters :
Returns :
void
|
Public navigateToResource | ||||||||
navigateToResource(defaultUrl: string)
|
||||||||
Parameters :
Returns :
void
|
Public navigateToWorkSpace | ||||||||
navigateToWorkSpace(defaultUrl: string)
|
||||||||
Parameters :
Returns :
void
|
popHistory |
popHistory()
|
Returns :
void
|
setNavigationUrl | ||||||
setNavigationUrl(navigationUrl?: UrlHistory)
|
||||||
Parameters :
Returns :
void
|
storeResourceCloseUrl |
storeResourceCloseUrl()
|
Returns :
void
|
Private storeUrlHistory |
storeUrlHistory()
|
Stores routing history
Returns :
void
|
storeWorkSpaceCloseUrl |
storeWorkSpaceCloseUrl()
|
Returns :
void
|
Private _history |
Type : Array<UrlHistory>
|
Default value : []
|
Stores routing history, if query param changed in same url only latest copy will be stored rest ignored |
Private _resourceCloseUrl |
Type : UrlHistory
|
Private _workspaceCloseUrl |
Type : UrlHistory
|
Stores workspaceCloseUrl |
Public activatedRoute |
Type : ActivatedRoute
|
Public cacheService |
Type : CacheService
|
Private cacheServiceName |
Type : string
|
Default value : 'previousUrl'
|
Name used to store previous url in session |
Public contentFullScreenEvent |
Default value : new EventEmitter<any>()
|
handleCMvisibility |
Default value : new EventEmitter<any>()
|
navigateToPreviousUrl$ |
Default value : new Subject
|
Private pageEndTime |
Type : any
|
Private pageStartTime |
Type : any
|
previousNavigationUrl |
Public router |
Type : Router
|
Static singletonInstance |
Type : NavigationHelperService
|
Public utilService |
Type : UtilService
|
history |
gethistory()
|
returns routing history
Returns :
Array<UrlHistory>
|