FormControlName

FormControlName

Stable Directive

What it does

Syncs a FormControl in an existing FormGroup to a form control element by name.

In other words, this directive ensures that any values written to the FormControl instance programmatically will be written to the DOM element (model -> view). Conversely, any values written to the DOM element through user input will be reflected in the FormControl instance (view -> model).