Dependency injection is a process where we inject the dependent objects rather than consumer creating the objects. DI is everywhere in Angular or we can go one step ahead and say Angular cannot work without DI.
For example in the below code, $scope
and $http
objects are created and injected by the Angular framework. The consumer, i.e., CustomerController
does not create these objects himself rather Angular injects these objects.
function CustomerController($scope,$http)
{
}