Chapter 2. Building your first Aurelia application

 

This chapter covers

  • Introducing my-books, the virtual bookshelf built with Aurelia
  • Bootstrapping an Aurelia application with the Aurelia CLI
  • Creating components in Aurelia by building view/view-model pairs
  • Responding to view events using binding commands
  • Keeping track of UI state with the Aurelia router

“In theory, there is no difference between theory and practice. But in practice, there is.”

Yogi Berra

When I first started surfing, I took a lesson to get a jump-start on the basics. At the beginning of the lesson, the instructor explained the concept of catching a wave, that idea of springing up from the board at just the right moment to glide down the face. I got it, conceptually. When I attempted to catch the first wave, I face-planted and ended up with a nose full of saltwater. My understanding moved from concept to reality.

2.1. Introducing my-books

2.2. Building with Aurelia

2.3. One-way and two-way data binding and event delegation

2.4. Creating components using Aurelia custom elements

2.5. Building services and retrieving data from a REST API

2.6. Maintaining page state with the Aurelia router

2.7. Moving forward

2.8. my-books project status

Summary