File

test/fixtures/sample-files/query-param-name.directive.ts

Description

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.

Implements

QueryParamAccessor OnChanges OnDestroy

Metadata

Index

Properties
Inputs

Constructor

constructor(groupService: QueryParamGroupService, valueAccessors: ControlValueAccessor[])
Parameters :
Name Type Optional
groupService QueryParamGroupService No
valueAccessors ControlValueAccessor[] No

Inputs

queryParamName
Type : string

The name of the QueryParam inside its parent QueryParamGroup. Note that this does not refer to the parameter name.

Properties

Public valueAccessor
Type : ControlValueAccessor | null
Default value : null

results matching ""

    No results matching ""