使用$ rootScope值module.config抛出错误

时间:2015-08-05 15:20:05

标签: angularjs angularjs-scope angularjs-rootscope

这是我的app.config

  app.config(['$translateProvider',function ($translateProvider) {

      $translateProvider.useUrlLoader('/api/sitecore/translations/get?pageName=' + $rootScope.currentPage + '&');
}

当我运行这个时,我收到了错误

Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.4.3/$injector/modulerr?p0=appModule&p1=Refere…%20at%20Zd%20(http%3A%2F%2Fathlonpoc%2Fscripts%2Fangular.min.js%3A18%3A464)(anonymous function) @ angular.min.js:6(anonymous function) @ angular.min.js:38m @ angular.min.js:7g @ angular.min.js:37eb @ angular.min.js:40d @ angular.min.js:19Ac @ angular.min.js:20Zd @ angular.min.js:18(anonymous function) @ angular.min.js:289a @ angular.min.js:176c @ angular.min.js:35

请帮助我......我是angularJs的新手

0 个答案:

没有答案