• Overview
@angular/router

ComponentInputBindingOptions

interface
stable

Configuration options for the component input binding feature which can be used with withComponentInputBinding function or RouterModule.forRoot

API

    
      interface ComponentInputBindingOptions {}
    
    

queryParams

boolean | undefined

When true (default), will configure query parameters to bind to component inputs.

unmatchedInputBehavior

"alwaysUndefined" | "undefinedIfStale" | undefined

Configures the behavior when an input is not matched by any key in the router data.

  • 'alwaysUndefined': (Default) Binds undefined to the input. This ensures that stale data is not retained.
  • 'undefinedIfStale': Binds undefined only if the input was previously available in the router data during the lifetime of the active route in this outlet. This avoids setting undefined for inputs that were never expected to be set by the router.
Jump to details