ComponentInputBindingOptions
Configuration options for the component input binding feature which can be used with withComponentInputBinding function or RouterModule.forRoot
API
interface ComponentInputBindingOptions {
queryParams?: boolean | undefined;
unmatchedInputBehavior?: "alwaysUndefined" | "undefinedIfStale" | undefined;
}
queryParams
boolean | undefinedWhen true (default), will configure query parameters to bind to component inputs.
unmatchedInputBehavior
"alwaysUndefined" | "undefinedIfStale" | undefinedConfigures the behavior when an input is not matched by any key in the router data.
-
'alwaysUndefined': (Default) Bindsundefinedto the input. This ensures that stale data is not retained. -
'undefinedIfStale': Bindsundefinedonly if the input was previously available in the router data during the lifetime of the active route in this outlet. This avoids settingundefinedfor inputs that were never expected to be set by the router.
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/router/ComponentInputBindingOptions