MCPcopy Index your code
hub / github.com/angular/angular / Guard

Class Guard

packages/router/test/standalone.spec.ts:311–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309 it('does not load component when canActivate returns false', async () => {
310 const loadComponentSpy = jasmine.createSpy();
311 @Injectable({providedIn: 'root'})
312 class Guard {
313 canActivate() {
314 return false;
315 }
316 }
317
318 TestBed.configureTestingModule({
319 imports: [

Callers

nothing calls this directly

Calls 1

InjectableInterface · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…