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

Style Validation in Angular 2 Forms

Style Validation in Angular 2 Forms

1:11
Inputs using Angular 2’s `ngModel` automatically apply style classes of `.ng-valid` and `.ng-invalid` each time the input’s validity changes. These classes allow you easily add your own styles simply by declaring the `styles` in your `Component` decorator.
Watch this lesson now
Avatar
egghead.io

Inputs using Angular 2’s ngModel automatically apply style classes of .ng-valid and .ng-invalid each time the input’s validity changes. These classes allow you easily add your own styles simply by declaring the styles in your Component decorator.

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