O'Reilly logo

Rails, Angular, Postgres, and Bootstrap, 2nd Edition by David B. Copeland

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 12Wrangle Forms and Validations with Angular

So far, we’ve treated our application as a producer of information. It shows data quickly, easily, and in a usable way. But applications need to consume information as well, and that’s what we’re going to look at in this chapter. So far, you’ve designed a complex form that shows the user some information about a customer, and the next step is to let the user modify that information.

You could actually make this form save back to the server using what you already know. You know how to make a button, attach an event handler to execute when a user clicks it, and how to make an Ajax request. Instead of doing that, however, let’s make this form more interactive. First, we’ll add some basic validation ...

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