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

Method constructor

packages/router/test/integration/navigation.spec.ts:897–899  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

895 @Component({template: ''})
896 class Aborting {
897 constructor() {
898 inject(Router).getCurrentNavigation()!.abort();
899 }
900 }
901 const router = setup([{path: '**', component: Aborting}]);
902 const events = [] as Event[];

Callers

nothing calls this directly

Calls 3

injectFunction · 0.90
getCurrentNavigationMethod · 0.80
abortMethod · 0.65

Tested by

no test coverage detected