为了账号安全,请及时绑定邮箱和手机立即绑定

angular1.5.7学习过程中控制台输出$q is not defined

angular1.5.7学习过程中控制台输出$q is not defined

月关宝盒 2018-08-19 13:13:48
我跟着教程学angularjs,跟教程一样组织代码后访问页面报错如下:angular.js:13708 ReferenceError: $q is not defined     at handleRequest (news.client.service.js:8)     at Object.list (news.client.service.js:27)     at Scope.NewsController.$scope.loadNews (news.client.controller.js:9)     at new NewsController (news.client.controller.js:18)     at Object.invoke (angular.js:4709)     at $controllerInit (angular.js:10234)     at nodeLinkFn (angular.js:9147)     at compositeLinkFn (angular.js:8510)     at compositeLinkFn (angular.js:8513)     at publicLinkFn (angular.js:8390)源代码:请问如何处理,新手轻拍。。。
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 900 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信