- Add the string name given to the FormControl to an attribute named controls on the element to indicate what fields it should include.
- Use the square bracket binding syntax around the value attribute on the DOM element and set that equal to an instance of the FormControl.
- Use the formControlName directive and set the value equal to the string name given to the FormControl.
- Use the string name given to the FormControl as the value for the DOM element id attribute.
What method is used to wire up a FormControl to a native DOM input element in reactive forms?
June 25, 2021June 25, 2021
0 Comment