Sha256: 1f5c5fc51d5c166d90ec1a9886d353639245aa1fe1640da4b4dd57e939f62c33

Contents?: true

Size: 432 Bytes

Versions: 7

Compression:

Stored size: 432 Bytes

Contents

'use strict';

angular.module('entangledTest')

.factory('Message', function(Entangled) {
  var entangled = new Entangled('ws://localhost:3000/messages');

  var Message = {
    new: function(params) {
      return entangled.new(params);
    },
    all: function(callback) {
      return entangled.all(callback);
    },
    find: function(id, callback) {
      return entangled.find(id, callback);
    }
  };

  return Message;
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
entangled-0.0.16 spec/dummy/public/app/services/message.js
entangled-0.0.15 spec/dummy/public/app/services/message.js
entangled-0.0.14 spec/dummy/public/app/services/message.js
entangled-0.0.13 spec/dummy/public/app/services/message.js
entangled-0.0.12 spec/dummy/public/app/services/message.js
entangled-0.0.11 spec/dummy/public/app/services/message.js
entangled-0.0.10 spec/dummy/public/app/services/message.js