Dependency Injection in AngularJS 1.x

AngularJS Dependency Injection works like magic! You pass a service name in your controller constructor function and angular runtime promptly provides you with a suitable object. While this makes development process easier, it might be a little disconcerting if you don’t know what’s happening behind the scene. In this article, I will take a look at how angular DI works. In an Angular application, user can create different kinds of components like: directives, controllers, services etc. [Read More]