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

Function withAutoCleanupInjectors

packages/router/src/provide_router.ts:766–770  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

764 * @publicApi 22.2
765 */
766export function withAutoCleanupInjectors(): AutoCleanupInjectorsFeature {
767 return routerFeature(RouterFeatureKind.AutoCleanupInjectorsFeature, [
768 {provide: ROUTE_INJECTOR_CLEANUP, useValue: routeInjectorCleanup},
769 ]);
770}
771
772/**
773 * Enables automatic destruction of unused route injectors.

Calls 1

routerFeatureFunction · 0.85

Tested by

no test coverage detected