ember-computed-polyfill

    0.1.0 • Public • Published

    Ember-computed-polyfill

    This addon exposes a computedPolyfill to use the new computed property syntax in any version of ember and avoid annoying deprecation warnings.

    This addon is intended to be used in addons.

    Installation

    • ember install ember-computed-polyfill

    Usage

    Import the utility function and use it as a regular computed property with the new syntax.

    import computedPolyfill from 'ember-computed-polyfill/computed-polyfill'
     
    Ember.Object.extend({
      mySettableProp: computedPolyfill('myDep1', 'myDep2', {
        get: function(key) { /*  */ },
        set: function(key, value) { /*  */ }
      })
    });
     

    Running Tests

    • ember test
    • ember test --server

    Building

    • ember build

    For more information on using ember-cli, visit http://www.ember-cli.com/.

    Install

    npm i ember-computed-polyfill

    DownloadsWeekly Downloads

    7

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • cibernox