0
我想在ngrepeat場景中使用angularjs來禁用圖標。我正在檢查如果所有者是空的,然後disbale圖標。在我的情況下,圖標從未禁用。Angularjs ng-disable不起作用於錨標記
我試着打印{{item.owner == null}},結果爲true。
可能是什麼問題,爲什麼圖標不能禁用?
<tr ng-repeat="item in items">
<td style="color: gray;" title="chat">
<a ng-href="sip:{{item.Email}}" ng-disabled="{{item.owner == null}}">
<span class="glyphicon glyphicon-comment"></span>
</a>
</td>
我認爲這可以幫助您http://stackoverflow.com/a/32085169/541432 – elvin