test/fixtures/sample-files/query-param-name.directive.ts
Binds a QueryParam to a DOM element.
This directive accepts the name of a QueryParam inside its parent QueryParamGroup. It binds this parameter to the host element, which is required to have a [ControlValueAccessor] https://angular.io/api/forms/ControlValueAccessor.
QueryParamAccessor
OnChanges
OnDestroy
| Selector | [queryParamName] |
Properties |
|
Inputs |
constructor(groupService: QueryParamGroupService, valueAccessors: ControlValueAccessor[])
|
|||||||||
|
Parameters :
|
| queryParamName |
Type : string
|
|
The name of the QueryParam inside its parent QueryParamGroup. Note that this does not refer to the parameter name. |
| Public valueAccessor |
Type : ControlValueAccessor | null
|
Default value : null
|