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.
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
textarea) that lets users enter data. You already know
AngularJS provides us with the very useful
directive that keeps the input control value and
scope model in sync. So, to ...