(
options: ComponentInputBindingOptions = {},
)
| 848 | * @returns A set of providers for use with `provideRouter`. |
| 849 | */ |
| 850 | export 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 |
no test coverage detected