Chapter 4. Forms, and How to Validate Them

In this chapter, we will see how data binding works for user input elements, such as input, select, and textarea. We will also see how the Fetch client works when dealing with scenarios more complex than simple GET requests, such as POST or PUT requests with JSON bodies, or requests to upload files to a server.

Additionally, we will see how we can validate forms, by using the aurelia-validation plugin.

Lastly, we will discuss various strategies to create complex forms, from inline list edition to modal edition windows using the aurelia-dialog plugin.

Binding to form inputs

Aurelia supports two-way binding to all official HTML5 user input elements. Some of them are pretty simple to use, such as the text input ...

Get Learning Aurelia now with O’Reilly online learning.

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