AngularJs错误http://errors.angularjs.org/1.2.9/$injector/unpr?p0=...

简介: AngularJs错误http://errors.angularjs.org/1.2.9/$injector/unpr?p0=...

AngularJs错误http://errors.angularjs.org/1.2.9/$injector/unpr?p0=...


Error: [$injector:unpr] http://errors.angularjs.org/1.2.9/$injector/unpr?p0=contentCategoryServiceProvider%20%3C-%20contentCategoryService
F/<@http://localhost:9101/plugins/angularjs/angular.min.js:2:449
$b/l.$injector<@http://localhost:9101/plugins/angularjs/angular.min.js:28:125
c@http://localhost:9101/plugins/angularjs/angular.min.js:26:200
$b/p.$injector<@http://localhost:9101/plugins/angularjs/angular.min.js:28:191
c@http://localhost:9101/plugins/angularjs/angular.min.js:26:200
d@http://localhost:9101/plugins/angularjs/angular.min.js:26:417
instantiate@http://localhost:9101/plugins/angularjs/angular.min.js:27:80
jd/this.$get</<@http://localhost:9101/plugins/angularjs/angular.min.js:57:484
E/<@http://localhost:9101/plugins/angularjs/angular.min.js:45:14
q@http://localhost:9101/plugins/angularjs/angular.min.js:3:378
E@http://localhost:9101/plugins/angularjs/angular.min.js:44:382
f@http://localhost:9101/plugins/angularjs/angular.min.js:38:399
v/<@http://localhost:9101/plugins/angularjs/angular.min.js:38:67
c/</<@http://localhost:9101/plugins/angularjs/angular.min.js:14:63
$eval@http://localhost:9101/plugins/angularjs/angular.min.js:98:304
$apply@http://localhost:9101/plugins/angularjs/angular.min.js:99:43
c/<@http://localhost:9101/plugins/angularjs/angular.min.js:14:21
d@http://localhost:9101/plugins/angularjs/angular.min.js:26:450
c@http://localhost:9101/plugins/angularjs/angular.min.js:13:437
Zb@http://localhost:9101/plugins/angularjs/angular.min.js:14:140
Tc@http://localhost:9101/plugins/angularjs/angular.min.js:13:215
@http://localhost:9101/plugins/angularjs/angular.min.js:197:117
i@http://localhost:9101/plugins/jQuery/jquery-2.2.3.min.js:2:27146
fireWith@http://localhost:9101/plugins/jQuery/jquery-2.2.3.min.js:2:27914
ready@http://localhost:9101/plugins/jQuery/jquery-2.2.3.min.js:2:29705
J@http://localhost:9101/plugins/jQuery/jquery-2.2.3.min.js:2:29890
angular.min.js:80:296


很明显是Service服务并没有在使用了该service方法的页面上引入相关js

目录
相关文章
|
9月前
|
前端开发 API UED
AngularJS的$http服务:深入解析与进行HTTP请求的技术实践
【4月更文挑战第28天】AngularJS的$http服务是核心组件,用于发起HTTP请求与服务器通信。$http服务简化了通信过程,通过深入理解和实践,能构建高效、可靠的前端应用。
|
缓存 前端开发 JavaScript
AngularJs优雅取消正在执行的http请求
AngularJs优雅取消正在执行的http请求
106 0
AngularJs优雅取消正在执行的http请求
angularjs $http.get 和 $http.post 传递参数
angularjs $http.get 和 $http.post 传递参数
59 0
AngularJS上传下载文件及$http总结
AngularJS上传下载文件及$http总结https://my.oschina.net/u/3298482/blog/903847
1520 0
|
缓存 JSON 数据格式
AngularJs $http 请求服务
$http $http是Angular的一个核心服务,它有利于浏览器通过XMLHttpRequest 对象或者 JSONP和远程HTTP服务器交互。 $HTTP API 是基于 $q服务暴露的deferred/promise APIs。
|
JavaScript 开发工具 git
AngularJS 入门教程 $http is not defined 解决方案
采用从git下载的教程, www.angularjs.cn 版本的 入门教程,在第5步的时候 签出文件: git checkout -f step-5 运行将会提示:  $http is not defined 对比了一下,发现angular-phonecat/app/js/controllers.js 签出的文件有错误,PhoneListCtrl 的参数少了一个 $http; 修改为如下的代码就没事了。
1367 0