Reactive forms also known as Model-driven forms is one of the two ways to build Angular forms.
Example of angular forms. Angular uses the assigned name to register the element with the NgForm directive attached to the parent element. The formCtrl controller sets initial values to the master object and defines the reset method. Any unique value will do but using a descriptive name is helpful.
We then create the Form Model in component class using Form Group Form Control Form Arrays. The example added a name attribute to the element and set it to name which makes sense for the heros name. The ng-app directive defines the AngularJS application.
In this tutorial we will learn how to build a simple Example Reactive Form. The ng-model directive binds two input elements to the user object in the model.