O'Reilly logo

Hands-On Full Stack Web Development with Aurelia by Erikson Haziz Murrugarra Sifuentes, Diego Jose Arguelles Rojas

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

Learning how DI works

DI is based on the Inversion of control pattern. Let’s explain that.

Imagine that we create a web application without Aurelia. You will have to manually implement something like this:

  1. Load/instantiate a view model
  2. Load/instantiate a view
  3. Bind the view to the view model
  4. Append the view to the DOM
  5. Handle click on a link by user.
  6. Parse the URL hash, determine which view model to load/instantiate, check whether the current view can be deactivated, and more
  7. Rinse and repeat

Again, and many more times.  Without Aurelia, you are implementing the logic that controls the application life cycle instead of your application business logic and features.

Now, let's create one using Aurelia. You won't work on any configuration code ...

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