Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I am getting this error "No module: ngResource"

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 

Hmm.. does this not come with Angular.js and its a separate plugin?

like image 438
Trip Avatar asked Jan 31 '13 17:01

Trip


1 Answers

It's a separate file that you'll need to include in your project, as of version 1.0.0rc3 (see changelog on GitHub).

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.

like image 83
Donut Avatar answered Nov 01 '22 03:11

Donut