ember-macaroni-decorators 0.3.0 • Public • Published 8 years ago 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 install ember-macaroni
ember install ember-macaroni-decorators
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 ,
} ) ;
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
Package Sidebar Install npm i ember-macaroni-decorators
Downloads Weekly Downloads