Sha256: d4835a3c464ccf49db4d6b0471b321c276642bf0fa56b9ee9f5165787caf2edd
Contents?: true
Size: 548 Bytes
Versions: 20
Compression:
Stored size: 548 Bytes
Contents
;(function() { "use strict"; function Nudges($resource) { var NudgeResource = $resource('/social_networking/nudges/:id', { id: '@id' }); function Nudge() {} Nudge.create = function(recipient_id) { var nudge = new NudgeResource({ recipientId: recipient_id }); return nudge.$save(); }; Nudge.search = function() { return NudgeResource.query.$promise; }; return Nudge; } angular.module('socialNetworking.services') .service('Nudges', ['$resource', Nudges]); })();
Version data entries
20 entries across 16 versions & 1 rubygems