MCPcopy Create free account
hub / github.com/angular/angular / canActivate

Method canActivate

packages/router/test/create_url_tree.spec.ts:800–802  ·  view source on GitHub ↗
(snapshot: ActivatedRouteSnapshot)

Source from the content-addressed store, hash-verified

798 class Guard {
799 constructor(private readonly router: Router) {}
800 canActivate(snapshot: ActivatedRouteSnapshot) {
801 this.router.navigateByUrl(createUrlTreeFromSnapshot(snapshot, ['../sibling'], null, null));
802 }
803 }
804
805 @Component({

Callers

nothing calls this directly

Calls 2

navigateByUrlMethod · 0.45

Tested by

no test coverage detected