Making our application minification safe
- Add relevant dependency injection annotations
Let's take the code from this repo and change the parameter names. Change
$timeout to random words of your choosing.
Refresh the page - you'll notice we get a load of errors in the console. Not good!!
Now, with our knowledge about the
$inject property, add the property to our controller with the correct values for what we want to inject (
Refresh the page again - you'll see that everything is in working order!