I'm using the resolve functionality with a couple of controllers to fetch some data before the rendering of a new view kicks in like this:
HomeCtrl.resolve = {
pictures: function(Picture) {
return Picture.getall();
}
};
How do I write this so the Picture-service, that is passed as an argument, doesn't get overwritten when minified?