You can inject the dependencies using the following pattern, it is minification proof
HomeCtrl.resolve = {
pictures : ['Picture', function(Picture) {
return Picture.getall();
}]
};
You can inject the dependencies using the following pattern, it is minification proof
HomeCtrl.resolve = {
pictures : ['Picture', function(Picture) {
return Picture.getall();
}]
};