Wondering what’s next for npm?Check out our public roadmap! »

    ember-macaroni-decorators

    0.3.0 • Public • Published

    ember-macaroni-decorators

    npm version Build Status Ember Observer Score

    Decorators for computed properties in ember-macaroni. This project version should stay in sync with ember-macaroni so the interface is consistent and expected.

    Installation

    # ember-cli > 0.2.3 
    ember install ember-macaroni
    ember install ember-macaroni-decorators
    # ember-cli <= 0.2.3 
    ember install:addon ember-macaroni
    ember install:addon ember-macaroni-decorators

    Usage

    import Ember from 'ember';
    import { gt } from 'ember-macaroni-decorators';
     
    export default Ember.Object.create({
      first: 5,
      second: 2,
      @gt('first', 'second') isFirstGreaterThanSecond, // true
    });

    Implemented Computed Methods

    • Collection
      • filterContains
      • filterKey
      • findKey
      • find
      • reduceKey
      • reduce
      • rejectKey
      • reject
      • withoutKey
      • without
    • Truth
      • equalKey
      • ternaryKey
      • ternary
      • gteKey
      • gtKey
      • lteKey
      • ltKey
    • General
      • getPropertiesByKeys
      • join
      • joinWith

    Install

    npm i ember-macaroni-decorators

    DownloadsWeekly Downloads

    3

    Version

    0.3.0

    License

    MIT

    Last publish

    Collaborators

    • avatar