Angular2 Forms

Import to learn Forms is to understand the following concept

  • FormGroups
  • FormControls

Angular Form Model

  FormsModule

     It is default forms module, if create a new form without specify the formGroup, will assign this to the form. ngModel is to create a formControl to the form.

  ReactiveFormsModule

   Using FormBuilder to build the forms by ourselves. 

  Validators

        Explicitly validators is coming from Validator 

    Custom validators by return 

{ [s: string]: boolean }

Following is brainstorm

-------------------------------------------------------------------------------
Senior Software Engineer
原文地址:https://www.cnblogs.com/fangshiwei/p/6058365.html