I have my app.config this way.
angular.module('App')
.config(function (blockUIConfig) {
blockUIConfig.autoInjectBodyBlock = false;
blockUIConfig.templateUrl = 'assets/bower_components/angular-block-ui/src/angular-block-ui/recibo_preview.html';
blockUIConfig.autoBlock = false;
});
But I need blockUIConfig.templateUrl to be dynamic, more or less like this.
angular.module('App')
.config(function (blockUIConfig,$rootScope) {
blockUIConfig.autoInjectBodyBlock = false;
blockUIConfig.templateUrl = 'assets/bower_components/angular-block-ui/src/angular-block-ui/'+$rootScope.file;
blockUIConfig.autoBlock = false;
});
Is there any way to associate a $ rootScope variable?