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

Chapter 11. Validation

Everything is working well and looking great, but currently there is no kind of validation for any of our forms or errors that could be sent back to us by the server. In this chapter, we'll take a look at how validation works in AngularJS and how we can combine it with the styles Bootstrap gives us to provide feedback to the user.

We'll also take a look at how we can expand upon the built-in rules by creating our own custom validator using what we've already learned in the previous chapters.

Form validation

One of the secret ingredients AngularJS brings to the table is native validation. There's basic validation of the most common HTML5 input types, alongside some custom directives such as required, pattern, and minlength

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