O'Reilly logo

Learning Web Development with Bootstrap and AngularJS by Stephen Radford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

We've taken a look at how validation works in AngularJS and how we can combine it with Bootstrap's styles to make our app more user friendly. Form validation was made easy with AngularJS's built-in directives and automatic validation of HTML5 inputs, such as email and tel.

We were able to check the validity of our form on submission and display appropriate error messages and warnings should it have failed. While the built-in validators are great for most use cases, we also looked at how we could build our own via a directive.

With our application complete, we'll take a look at a few community-built tools in the next chapter to make our lives easier while working with AngularJS.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required