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

Function provideNavigationEndAction

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

Source from the content-addressed store, hash-verified

620}
621
622function provideNavigationEndAction(fn: Function) {
623 return {
624 provide: ENVIRONMENT_INITIALIZER,
625 multi: true,
626 useValue: () => {
627 onNavigationEnd(inject(Router), fn);
628 },
629 };
630}

Callers 1

bootstrap.spec.tsFile · 0.85

Calls 2

injectFunction · 0.90
onNavigationEndFunction · 0.85

Tested by

no test coverage detected