NgControl

A base class that all control FormControl-based directives extend. It binds a FormControl object to a DOM element.

Subclasses

Interface, extends AbstractControlDirective

name#

name: string|number|null

The name for the control

valueAccessor#

valueAccessor: ControlValueAccessor|null

The value accessor for the control

validator#

get validator(): ValidatorFn|null

The registered synchronous validator function for the control

asyncValidator#

get asyncValidator(): AsyncValidatorFn|null

The registered async validator function for the control

viewToModelUpdate#

viewToModelUpdate(newValue: any): void

The callback method to update the model from the view when requested