Question: What method is used to wire up a FormControl to a native DOM input element in reactive forms?
- Add the string name given to the FormControl to an attribute named controls on the
- 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.
Answer: The correct answer of the above question is Option C:Use the formControlName directive and set the value equal to the string name given to the FormControl.