Dependency injection and service lookup are two important framework concepts. The first, dependency injection, refers a dependent object being injected onto another object during instantiation. For example, all route objects have the property router
set on them during instantiation. We say that the dependency of the router has been injected onto the route objects.
App.IndexRoute = Ember.Route.extend({
actions: {
showPath: function(){
// Dependency injection provides the router object to our
// route instance.