CHAPTER 12

image

Working with Forms

In this chapter I describe the support that AngularJS provides for working with form elements, starting with data binding and then moving on to the different kinds of form validation that are available. AngularJS uses directives to seamlessly enhance standard form elements such as form, input, and select, and I finish this chapter by describing the additional attributes that the directives provide to help integrate forms into the AngularJS development model. Table 12-1 summarizes this chapter.

Table 12-1. Chapter Summary

Problem

Solution

Listing

Create two-way model bindings.

Use the ng-model directive. ...

Get Pro AngularJS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.