@angular/router#UrlSegment TypeScript Examples
The following examples show how to use
@angular/router#UrlSegment.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: auth.guard.ts From auth0-angular with MIT License | 5 votes |
canLoad(route: Route, segments: UrlSegment[]): Observable<boolean> {
return this.auth.isAuthenticated$.pipe(take(1));
}
Example #2
Source File: auth.guard.ts From onchat-web with Apache License 2.0 | 5 votes |
canLoad(route: Route, segments: UrlSegment[]): boolean | Promise<boolean> | Observable<boolean> {
return this.handle();
}
Example #3
Source File: not-auth.guard.ts From onchat-web with Apache License 2.0 | 5 votes |
canLoad(route: Route, segments: UrlSegment[]): boolean | Promise<boolean> | Observable<boolean> {
return this.handle();
}