Skip to content

Instantly share code, notes, and snippets.

@vaneves
Last active September 24, 2015 11:45
Show Gist options
  • Save vaneves/eb3c85ac94f6cea86155 to your computer and use it in GitHub Desktop.
Save vaneves/eb3c85ac94f6cea86155 to your computer and use it in GitHub Desktop.
Blog Ninja - Service
'use strict';
var services = angular.module('ninja.services', []);
services.factory('PostService', function ($resource, API) {
return $resource(API + '/posts/:id', {id: '@id'}, {
update:{
method:'PUT'
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment