错误:[$ injector:unpr] http://errors.angularjs.org/1.3.4/$injector/unpr?p0=%24ngMapProvider%20%3C-%20%24ngMap出错(原生)

时间:2015-03-24 02:37:43

标签: angularjs angularjs-scope angular-ui ng-map

运行我的应用程序时出现以下错误。只是想知道这意味着如果有人经历过这种情况会是什么意思?

错误:[$ injector:unpr] http://errors.angularjs.org/1.3.4/ $ injector / unpr?p0 =%24ngMapProvider%20%3C-%20%24ngMap     在错误(本机)     在https://ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.min.js:6:416     在https://ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.min.js:38:22     在Object.d [as get](https://ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.min.js:36:49)     在https://ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.min.js:38:94     在d(https://ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.min.js:36:49)     在e(https://ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.min.js:36:310)     在Object.instantiate(https://ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.min.js:36:451)     at $ get(https://ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.min.js:75:409)     在http://localhost:11080/angularui/ui-bootstrap-tpls-0.12.0.min.js:8:29473

注意:代码在这里发布有点复杂。

1 个答案:

答案 0 :(得分:3)

您尝试在未正确包含ngMapProvider作为依赖项的地方注入/使用{{1}}。

请参阅:https://docs.angularjs.org/error/$injector/unpr