【发布时间】:2015-06-27 08:33:38
【问题描述】:
应用程序控制器
isHotel_profile: function (){
return this.get('currentPath') === 'hotel';
}.property('currentPath'),
组件
{{#step-controller hotelPage=isHotel_profile}} {{/step-controller}}
这是组件模板
{{#if hotelPage}}
hotel page
{{else}}
not hotel page
{{/if}}
我想使用该属性作为条件我该如何实现
【问题讨论】:
-
{{step-controller hotelPage=isHotel_profile}}
标签: ember.js ember-cli ember-controllers ember-components