Chapter 8. Forms and validations

This chapter covers

  • How AngularJS extends form elements
  • Handling validations with AngularJS
  • Setting up validations on an element
  • Displaying validation errors and Angello

Angello has turned into a fairly full-featured application at this point, but there’s a major piece of functionality that we need to add. What happens if a user submits a new story and they haven’t filled in any information? What happens if we want to limit the length of the title field? We need to be able to enforce conformity on the data that goes into the application, as well as provide instant feedback to the user when something is amiss. This is where forms and validations play a crucial role in developing an AngularJS application. ...

Get AngularJS in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.