Skip to Main Content
Hands-On Full Stack Web Development with Aurelia
book

Hands-On Full Stack Web Development with Aurelia

by Diego Argüelles Rojas, Erikson Murrugarra Murrugarra Sifuentes
June 2018
Intermediate to advanced content levelIntermediate to advanced
348 pages
8h 19m
English
Packt Publishing
Content preview from Hands-On Full Stack Web Development with Aurelia

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Front-End Tooling with Gulp, Bower, and Yeoman

Front-End Tooling with Gulp, Bower, and Yeoman

Stefan Baumgartner
Ember.js in Action

Ember.js in Action

Joachim Haagen Skeie

Publisher Resources

ISBN: 9781788833202Supplemental Content