key code snippets are following: guards -> auth.guard import { Injectable } from '@angular/core'; import { ActivatedRoute, ActivatedRouteSnapshot, CanActivate, Router, RouterState, RouterStateSnapshot, UrlTree } from '@angular/router'; import { Observable } from 'rxjs'; import { AuthService } from '../services/auth.service'; @Injectable({ providedIn: 'root' }) export class AuthGuard implements CanActivate { currentAccessingURL:string; constructor(public auth: AuthService, public router: Router) { } canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean { this.currentAccessingURL = state.url; let canAccess = this.auth.checkRouteAccessPermission(this.currentAccessingURL); if (!this.auth.isAuthenticated()) { this.router.navigateByUrl('/user-login'); return false; } else if(!canAc...