File

projects/congarevenuecloud/ecommerce/src/lib/services/guards/authentication.guard.ts

Description

This guard is a work in progress. This guard is for guest users, When user tries to hit the application with the URl directly the guard checks if the user is guest user or not.Then it redirects to the page which user was trying to load.

Index

Methods

Constructor

constructor(userService: UserService, router: Router, ngZone: NgZone)
Parameters :
Name Type Optional
userService UserService No
router Router No
ngZone NgZone No

Methods

canActivate
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot)
Parameters :
Name Type Optional
route ActivatedRouteSnapshot No
state RouterStateSnapshot No
Returns : boolean | Observable

results matching ""

    No results matching ""