The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Check ngModel Validation in Angular 2

Check ngModel Validation in Angular 2

0:55
Checking the validity of an Angular 2 input using ngModel is simply a matter of getting a reference to the ngModel itself. You get the reference by using the `#ref` syntax, assigning it a name, then `ngModel` will check all of the validity rules for you.
Watch this lesson now
Avatar
egghead.io

Checking the validity of an Angular 2 input using ngModel is simply a matter of getting a reference to the ngModel itself. You get the reference by using the #ref syntax, assigning it a name, then ngModel will check all of the validity rules for you.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?