Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. <!-- TEMPLATE FORMS -->
  2. <input type="text" name="name" ngModel required #nameRef="ngModel" />
  3. <app-show-errors [ctrl]="nameRef"></app-show-errors>
  4.  
  5. <!-- REACTIVE FORMS -->
  6. <input type="text" formControlName="mycontrol"/>
  7. <app-show-errors [ctrl]="formGroupObj.get('mycontrol')"></app-show-errors>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement