Angular
Intro to Reactive Forms in Angular - Validate Forms

Styling Controls for Validity

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

Angular has built-in classes that you can use to style the form based on its status. Take a look here to find out classes you can style!

I'm going to add borders to elements in the form with the class .ng-invalid, like this: .ng-invalid { border-left: 3px solid darkred; }

 

I finished! On to the next chapter