AngularJS is one of those frameworks that let us provide a list of dependent modules or services, while declaring a controller, module or service etc. A typical example would look like
Here, we simply inject $scope into our main controller so that we can use it later. Lets see a minified version of the same code:
Worry not, the solution is pretty simple. Angular provides a different way to specify the dependency using a string array, apart from being passed as parameters in the function as follows:
Even the minified version works flawlessly:
So just remember to use a bit longer and weird looking syntax to specify your dependencies in Angular.