With the release of AngularJS 1.3.0, the AngularJS team gave us some great tools to deal with validation in a more sane manner.
When this form loads, by default the "Username" field is marked as invalid and has a message about the form being required. If you submit the form, the password field will also get marked invalid and the form won't submit. Let's go through the code and figure out how this works.
Your new post is loading...