ember-macaroni-decorators
v0.3.0
Published
Ember computed decorators for `ember-macaroni`
Downloads
7
Maintainers
Readme
ember-macaroni-decorators
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