Angularjs 角度清理:未捕获错误:[$injector:unpr]在angular 1.2.1上
我用Yeoman发电机在Angularjs 角度清理:未捕获错误:[$injector:unpr]在angular 1.2.1上,angularjs,Angularjs,我用Yeoman发电机在angular 1.2.1中安装了angular sanitize#1.2.3: index.html: ... <!-- build:js scripts/modules.js --> <script src="bower_components/angularjs-geolocation/src/geolocation.js"></script> <script src="bower_components/angular
angular 1.2.1
中安装了angular sanitize#1.2.3
:
index.html
:
...
<!-- build:js scripts/modules.js -->
<script src="bower_components/angularjs-geolocation/src/geolocation.js"></script>
<script src="bower_components/angular-cookies/angular-cookies.js"></script>
<script src="bower_components/angular-route/angular-route.js"></script>
<script src="bower_components/angular-translate/angular-translate.js"></script>
<script src="bower_components/angular-sanitize/angular-sanitize.js"></script>
<script src="bower_components/ngprogress/build/ngProgress.js"></script>
<script src="bower_components/ngstorage/ngStorage.js"></script>
<!-- endbuild -->
...
即使不注射$sanitize
,我也能得到:
我遗漏了什么?看来你毫无例外地拥有运行所需的一切。我唯一能建议的是检查您使用的
angular.module('angularGeolocationApp'…)
的所有其他地方,以确保您没有意外地覆盖依赖项。只需确保您只有一个定义了第二个参数的实例。看起来您已经拥有了运行所需的一切,没有例外。我唯一能建议的是检查您使用的angular.module('angularGeolocationApp'…)
的所有其他地方,以确保您没有意外地覆盖依赖项。只需确保您只有一个定义了第二个参数的实例。看起来您已经拥有了运行所需的一切,没有例外。我唯一能建议的是检查您使用的angular.module('angularGeolocationApp'…)
的所有其他地方,以确保您没有意外地覆盖依赖项。只需确保您只有一个定义了第二个参数的实例。看起来您已经拥有了运行所需的一切,没有例外。我唯一能建议的是检查您使用的angular.module('angularGeolocationApp'…)
的所有其他地方,以确保您没有意外地覆盖依赖项。只需确保只有一个实例定义了第二个参数。angular sanitize v1.2.3与AngularJS v1.2.1不兼容
最新版本的$sanitize(1.2.3)现在使用与$compile
相同的机制来验证URI,它使用新的私有服务$$sanitizeUri,它只是AngularJS v1.2.3及更高版本的一部分。有关更多信息,请参见此
要解决此问题,请安装AngularJS v1.2.1或将AngularJS升级到1.2.3AngularJS v1.2.3与AngularJS v1.2.1不兼容 最新版本的$sanitize(1.2.3)现在使用与
$compile
相同的机制来验证URI,它使用新的私有服务$$sanitizeUri,它只是AngularJS v1.2.3及更高版本的一部分。有关更多信息,请参见此
要解决此问题,请安装AngularJS v1.2.1或将AngularJS升级到1.2.3AngularJS v1.2.3与AngularJS v1.2.1不兼容 最新版本的$sanitize(1.2.3)现在使用与
$compile
相同的机制来验证URI,它使用新的私有服务$$sanitizeUri,它只是AngularJS v1.2.3及更高版本的一部分。有关更多信息,请参见此
要解决此问题,请安装AngularJS v1.2.1或将AngularJS升级到1.2.3AngularJS v1.2.3与AngularJS v1.2.1不兼容 最新版本的$sanitize(1.2.3)现在使用与
$compile
相同的机制来验证URI,它使用新的私有服务$$sanitizeUri,它只是AngularJS v1.2.3及更高版本的一部分。有关更多信息,请参见此
要解决这个问题,要么安装angular sanitize v1.2.1,要么将AngularJS升级到1.2.3我完全迷路了。在dependencies数组中注释掉
ngSanitize
,可以修复此问题。我检查了所有其他模块,但没有一个模块定义参数的数组。我完全迷路了。在dependencies数组中注释掉ngSanitize
,可以修复此问题。我检查了所有其他模块,但没有一个模块定义参数的数组。我完全迷路了。在dependencies数组中注释掉ngSanitize
,可以修复此问题。我检查了所有其他模块,但没有一个模块定义参数的数组。我完全迷路了。在dependencies数组中注释掉ngSanitize
,可以修复此问题。我检查了所有其他模块,但没有一个模块定义参数的数组。
...
angular.module('angularGeolocationApp', [
'ngCookies',
'ngRoute',
'geolocation',
'pascalprecht.translate',
'ngProgress',
'ngStorage',
'ngSanitize'
])
...