How to use ember-buffered-proxy - 10 common examples

To help you get started, we’ve selected a few ember-buffered-proxy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github yapplabs / ember-buffered-proxy / tests / dummy / app / controllers / application.js View on Github external
init() {
    this._super(...arguments);

    let user = {
      firstName: 'stefan',
      email: 'example@example.com'
    };

    let buffer = BufferedProxy.create({
      content: user
    });

    this.setProperties({
      buffer: buffer,
      user: user
    });
  },
github pixelhandler / ember-jsonapi-resources / tests / dummy / app / components / form-post.js View on Github external
resource: Ember.computed('post', function() {
    return BufferedProxy.create({ content: this.get('post') });
  }).readOnly(),
github stefanpenner / ember-state-services / tests / dummy / app / states / todos.js View on Github external
import BufferedProxy from 'ember-buffered-proxy/proxy';

const TodosProxy = BufferedProxy.extend();

TodosProxy.reopenClass({
  initialState() {
    return {
      content: this.get('todo')
    };
  }
});

export default TodosProxy;
github CodingItWrong / firehose-api / frontend / app / components / link-form.js View on Github external
get buffer() {
    return BufferedProxy.create({
      content: this.link,
    });
  }
github pixelhandler / blog-admin / app / components / form-post.js View on Github external
resource: Ember.computed('post', function() {
    return BufferedProxy.create({ content: this.get('post') });
  }).readOnly(),
github CodingItWrong / firehose-api / frontend / app / components / link-form.js View on Github external
get buffer() {
    return BufferedProxy.create({
      content: this.get('link'),
    });
  }
github rtablada / ember-simple-form / addon / components / simple-form.js View on Github external
didReceiveAttrs() {
    this._super(...arguments);
    let startingValues = this.getAttr('startingValues') || {};
    let formValues = BufferedProxy.create({content: startingValues});

    this.set('formValues', formValues);
  },
github discourse / discourse / app / assets / javascripts / discourse / app / mixins / buffered-content.js View on Github external
buffered: computed(property, function () {
      return BufferedProxy.create({
        content: this.get(property),
      });
    }),
github NREL / api-umbrella / src / api-umbrella / admin-ui / app / components / apis / server-form.js View on Github external
bufferedModel: computed('model', function() {
    let owner = getOwner(this).ownerInjection();
    return BufferedProxy.extend(Server.validationClass).create(owner, { content: this.model });
  }),

ember-buffered-proxy

An Ember Object Proxy with change buffering

MIT
Latest version published 3 years ago

Package Health Score

53 / 100
Full package analysis