我有以下问题:我想通过 bindAttr 禁用我的按钮。所以我有这个按钮:
<div class="pull-right refresh-button" style="margin-top: -45px;"
title="update Items" {{action refreshItems target="view"}} {{bindAttr
disabled="ItemState.isDisable"}}>
<i class="icon-refresh"></i>
</div>
其中 ItemState.isDisable 它是我用于状态的余烬对象。主要思想是当用户单击按钮时,在信息从服务器返回之前无法再单击...
我正在使用 ember RC6 和车把 RC4
有任何想法吗?
谢谢