Revision 61331
Added by Konstantinos Triantafyllou over 2 years ago
adminDashboard.guard.ts | ||
---|---|---|
43 | 43 |
} |
44 | 44 |
} |
45 | 45 |
|
46 |
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> | boolean {
|
|
46 |
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
|
|
47 | 47 |
return this.check(state.url, route.params.stakeholder); |
48 | 48 |
} |
49 | 49 |
|
Also available in: Unified diff
[Monitor Dashboard | Angular 11]: Update canActivate function definition