Sha256: 62410e8cb27c9c0c7aa40eb5cd075bd4840a226ee41bb9504678f097738fcb38
Contents?: true
Size: 573 Bytes
Versions: 20
Compression:
Stored size: 573 Bytes
Contents
;(function() { "use strict"; // Service for managing remote Likes. function Likes($resource) { var LikeResource = $resource('/social_networking/likes/:id', { id: '@id' }); function Like() {} // Persist a Like to the server. Like.create = function(attributes) { var like = new LikeResource({ itemType: attributes.itemType, itemId: attributes.itemId }); return like.$save(); }; return Like; } angular.module('socialNetworking.services') .service('LikeResource', ['$resource', Likes]); })();
Version data entries
20 entries across 16 versions & 1 rubygems