我想顯示/在我的情況equipment.state
的情況下equipment.state
值隱藏每個圖像, 等於'true'
或'false'
!以下錯誤採用NG-如果裏面NG-重複與anguar場不工作
<div ng-repeat="equipment in listeequipements" class="list-group" >
<img src="images/m_next_all.png" ng-if="{{equipment.state}}" width="32px"></div>
我的代碼返回:
*Error: [$parse:syntax] Syntax Error: Token '{' invalid key at column
2 of the expression [{{equipment.state}}] starting at [{equipment.state}}].*