MCPcopy
hub / github.com/angular/angular / withComponentInputBinding

Function withComponentInputBinding

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

Source from the content-addressed store, hash-verified

837 * @returns A set of providers for use with `provideRouter`.
838 */
839export function withComponentInputBinding(
840 options: ComponentInputBindingOptions = {},
841): ComponentInputBindingFeature {
842 const providers = [
843 {provide: INPUT_BINDER, useFactory: () => new RoutedComponentInputBinder(options)},
844 ];
845
846 return routerFeature(RouterFeatureKind.ComponentInputBindingFeature, providers);
847}
848
849/**
850 * Enables view transitions in the Router by running the route activation and deactivation inside of

Calls 1

routerFeatureFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…