The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Use Dependency Injection with ES6 and Angular

Use Dependency Injection with ES6 and Angular

3:09
In this lesson, we are going to talk about dependency injection in an Angular application in ES6. There is a gotcha that I want to point out that most people will run into especially if they have not spent a lot of time using a classical language. We will start with a contrived example and then anchor it back into our application when we modify our **CategoriesModel** to use the **$q** service to return a promise.
Watch this lesson now
Avatar
egghead.io

In this lesson, we are going to talk about dependency injection in an Angular application in ES6. There is a gotcha that I want to point out that most people will run into especially if they have not spent a lot of time using a classical language. We will start with a contrived example and then anchor it back into our application when we modify our CategoriesModel to use the $q service to return a promise.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?