Project

General

Profile

« Previous | Next » 

Revision 61332

[Library | Angular 11]: Update canActivate function definition

View differences:

connectAdminLoginGuard.guard.ts
43 43
    return authorized;
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(route.params['community'], state.url);
48 48
  }
49 49
  

Also available in: Unified diff