I need access to resolves in my templateProvider. The documentation says this is possible does it doesn't look like it actually works. Does anyone know if I'm doing this wrong or if it simply doesn't work?
http://plnkr.co/edit/yitkre1ttB8TehbhClR2?p=preview
// Code goes here
angular.module('app', ['ui.router']).config(function($stateProvider, $urlRouterProvider) {
$stateProvider.state('root', {
url: '/root',
resolve: {
test: function() {
return 'world';
}
},
templateProvider: function(test) {
return 'hello ' + test;
}
});
$urlRouterProvider.otherwise('root');
});