AngularJS – Dependency Injection

Dependency Injection is the pattern of designing software in which one or more services (known as dependencies) can be injected in the component (dependent object). It makes our code more maintainable, testable and usable. There are many components in which dependency can be applied like controllers, directives, filter,  service, factory, provider, value, constant. But some of …