Consider code (Angular 1.2 RC3):
main.config(['$routeProvider', '$sce', function($routeProvider, $sce) {
$routeProvider.when('/', { templateUrl: $sce.trustAsResourceUrl('bla-bla.html'), controller: "App.Controllers.BlaBla" });
$routeProvider.otherwise({ redirectTo: '/' });
}]);
It will throw an exception because services are not allowed during config and i'm using "$sce" (Strict Contextual Escaping) service here.
How to use SCE in "config" method? What is possible solutions to this problem?