MCPcopy
hub / github.com/angular/angular / provideNavigationEndAction

Function provideNavigationEndAction

packages/router/test/bootstrap.spec.ts:623–631  ·  view source on GitHub ↗
(fn: Function)

Source from the content-addressed store, hash-verified

621}
622
623function provideNavigationEndAction(fn: Function) {
624 return {
625 provide: ENVIRONMENT_INITIALIZER,
626 multi: true,
627 useValue: () => {
628 onNavigationEnd(inject(Router), fn);
629 },
630 };
631}
632
633function createPromise() {
634 let resolveFn: () => void;

Callers 1

bootstrap.spec.tsFile · 0.85

Calls 2

injectFunction · 0.90
onNavigationEndFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…