试图用角$资源,其回来不的方法。通过稀疏的文档看,我能找到这样的:
Trying to use the Angular $resource, and its coming back as not a method. Looking through the sparse documentation, I was able to find this :
angular.module('productServices', ['ngResource']).
这是你应该把它列入你的应用程序模块中。很公平,我把它和得到:
That you're supposed to include it in your app module. Fair enough, I throw it in and get :
Uncaught Error: No module: ngResource
嗯..这是否不附带Angular.js和一个单独的插件?
Hmm.. does this not come with Angular.js and its a separate plugin?
推荐答案
这是一个单独的文件,你需要在你的项目包括,为1.0.0rc3版本(see更新日志在GitHub上)。
It's a separate file that you'll need to include in your project, as of version 1.0.0rc3 (see changelog on GitHub).
到 HTTP头://$c$c.angularjs.org - 文件夹下的任何版本后,此版本中,您将看到可供下载,包括在项目中的角resource.js
文件。
Head over to http://code.angularjs.org -- under the folder for any version after this release, you should see the angular-resource.js
file available for download and inclusion in your project.
相关推荐
最新文章