ngResource
is the name of the optional Angular module that adds support for interacting with
RESTful server-side data sources.
ngReource
provides the $resource
serivce.
First include angular-resource.js
in your HTML:
<script src="angular.js">
<script src="angular-resource.js">
You can also find this file on the Google CDN, Bower (as angular-resource
), and on code.angularjs.org.
Then load the module in your application by adding it as a dependant module:
angular.module('app', ['ngResource']);
With that you're ready to get started!
See $resource
for usage.