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