just saw 2 different demos and they differ some in the code. What is the reason for the two different approaches?
app.controller('AppCtrl', ['$scope', '$mdDialog', function($scope, $mdDialog){
//Code goes here
}]);
and
app.controller('AppCtrl', function($scope, $mdDialog){
//Code goes here
});
As I understand it the first one is to recommend in case of I'm to use minification.. but is there other reasons to consider?