This is my code:
myApp = angular.module("myApp", []);
myApp.config(['$routeProvider', '$controllerProvider',
'$compileProvider', '$filterProvider',
'routeResolver', myConfigFunction] );
angular.bootstrap(document, ['myApp']);
Whenever I do this, I get the error: Unknown provider: routeResolver from myApp
If however I move the angular.bootstrap before the config function, ie:
myApp = angular.module("myApp", []);
angular.bootstrap(document, ['myApp']);
myApp.config(['$routeProvider', '$controllerProvider',
'$compileProvider', '$filterProvider',
'routeResolver', myConfigFunction] );
Then I don't get any errors, but the config function myConfigFunction is not called. (The function just logs a line to console).
What am I doing wrong?