December 2014
Intermediate to advanced
272 pages
8h 17m
English
Dependency injection can be a difficult concept to fully grasp. However, it is a very important part of AngularJS, and after you understand the basics, the AngularJS implementation becomes quite clear. Dependency injection is a well-known design pattern in many server-side languages but has not been used extensively in a JavaScript framework until AngularJS.
The idea of AngularJS dependency injection is to define and dynamically inject a dependency object into another object, making available all the functionality provided by the dependency object. AngularJS provides dependency injection through the use of providers and an injector service.
A provider is essentially a definition of how to create an instance of ...
Read now
Unlock full access