Pubstwo 984 second try

These are the urls that helped me the most:
How to use resolve:
http://odetocode.com/blogs/scott/archive/2014/05/20/using-resolve-in-angularjs-routes.aspx
How to test controllers with resolve:
http://stackoverflow.com/questions/15322155/how-can-i-test-a-controller-with-resolve-properties-in-angularjs
How to enable dependency injection in resolves and make them minification-safe:
https://github.com/angular-ui/ui-router/issues/711