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

Function withComponentInputBinding

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

Source from the content-addressed store, hash-verified

836 * @returns A set of providers for use with `provideRouter`.
837 */
838export function withComponentInputBinding(
839 options: ComponentInputBindingOptions = {},
840): ComponentInputBindingFeature {
841 const providers = [
842 {provide: INPUT_BINDER, useFactory: () => new RoutedComponentInputBinder(options)},
843 ];
844
845 return routerFeature(RouterFeatureKind.ComponentInputBindingFeature, providers);
846}
847
848/**
849 * 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