Note

The $resource service is distributed in a separate file ( angular-resource.js ), and resides in a dedicated module ( ngResource ). To take advantage of the $resource service we need to include the angular-resource.js file and declare dependency on the ngResource module from our application’s module.