SHARE
TWEET

Untitled

a guest Dec 11th, 2014 4 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'use strict';
  2.  
  3. //Articles service used for communicating with the articles REST endpoints
  4. angular.module('articles').factory('Articles', ['$resource',
  5.         function($resource) {
  6.                 return $resource('articles/:articleId', {
  7.                         articleId: '@_id'
  8.                 }, {
  9.                         update: {
  10.                                 method: 'PUT'
  11.                         }
  12.                 });
  13.         }
  14. ]);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top