如果我使用这个插件:https://github.com/jmurphyau/ember-truth-helpers
灰烬2,使用插件像灰烬,真帮手,而不是仅仅灰烬默认方式表演
很多,比方说,
{{#if (eq model.beautiful true) }}
或
{{#if (or (eq model.beautiful true) (eq model.crazy true)) }}
什么是Ember在后台创建?像这些计算属性相同的JavaScript作品:
isBeautiful: Ember.computed.equal('model.beautiful', true);
等等?
如果我有30个computedProperty(Ember宏和自定义的),最好使用这个插件或默认的Ember方式?
我不知道,因为在一些模板,我可以有这样的事情很多很多次!:
{{#if (or (eq model.beautiful true) (eq model.crazy true)) }}
,而不是仅仅这一个:
{{#if isBeautifulOrCrazy }}
什么在表现方面最好的解决方案?