Sha256: b4e4a2a903fd3b222ca328a7eeba66b013f8a93345ddbd14618c8dffffa04d1e
Contents?: true
Size: 582 Bytes
Versions: 20
Compression:
Stored size: 582 Bytes
Contents
;(function() { 'use strict'; function Participants($resource) { var ParticipantResource = $resource('/social_networking/participants/:id', { id: '@participant_id' }); function Participant() {} Participant.getAll = function() { return ParticipantResource.query().$promise; }; Participant.getOne = function(participant_id) { return ParticipantResource.get({ id: participant_id }).$promise; }; return Participant; } angular.module('socialNetworking.services') .service('Participants', ['$resource', Participants]); })();
Version data entries
20 entries across 16 versions & 1 rubygems