I'm trying to get a grasp of Angular's ngResource. I've started with a simple code excerpt taken from Angular's documentation:
angular.module("app", ['ngResource'])
var user = $resource("/REST/user/:id", {userID:'@id'});
But when the code is run I check the JS console and I see an error saying:
Uncaught ReferenceError: $resource is not defined
Yes, I've included the 'angular-resource.js' script. I think I'm omitting something obvious, but I can't deduce what it is. Please help!