I\'ve ran into problem with ng-controller and \'resolve\' functionality:
I have a controller that requires some dependency to be resolved before running, it works fine w
Getting data in "resolve" attribute is the functionality of route (routeProvider) , not the functionality of controller.
Key( is your case : 'data') in resolve attribute is injected as service. That's why we are able fetch data from that service.
But to use same controller in different place , you have fetch data in controller.