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

Function withComponentInputBinding

packages/router/src/provide_router.ts:850–862  ·  view source on GitHub ↗
(
  options: ComponentInputBindingOptions = {},
)

Source from the content-addressed store, hash-verified

848 * @returns A set of providers for use with `provideRouter`.
849 */
850export function withComponentInputBinding(
851 options: ComponentInputBindingOptions = {},
852): ComponentInputBindingFeature {
853 const providers = [
854 {
855 provide: INPUT_BINDER,
856 useFactory: () =>
857 new RoutedComponentInputBinder(options, inject(ROUTER_RESOURCES_FEATURE, {optional: true})),
858 },
859 ];
860
861 return routerFeature(RouterFeatureKind.ComponentInputBindingFeature, providers);
862}
863
864/**
865 * Enables view transitions in the Router by running the route activation and deactivation inside of

Calls 2

injectFunction · 0.90
routerFeatureFunction · 0.85

Tested by

no test coverage detected