•  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.

By Neha S

Leave a Reply

Your email address will not be published.