Chapter 7Understanding AngularJS Forms

A form is one of the basic requirements for any CRUD app. You'll likely have different forms for different kind of operations. The good news is that AngularJS offers a nice form API that, not only lets you bind form controls to scope models, but also allows you to validate each control easily. This chapter will focus on form handling and validation in AngularJS.

AngularJS Forms

What's a form? Well, it's just a container that groups several related input controls together. A control is an HTML element (such as input, select, textarea) that lets users enter data. You already know AngularJS provides us with the very useful ng-model directive that keeps the input control value and scope model in sync. So, to ...

Get AngularJS: Novice to Ninja 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.