我想要根據貸款的真/假值顯示td。一切都是固體,直到我打了這一點,它打印出兩個TD的對應的真實的值,而不是TD的/假我無法獲得正確的TD以角度顯示
<tbody>
<tr ng-repeat="dvd in dvds | filter: dvdFilter">
<td>{{dvd.Title}}</td>
<td>{{dvd.Rating.RatingName}}</td>
<td>{{dvd.MovieDirector}}</td>
<td><a href={{dvd.Website}} class="btn btn-primary">IMDb</a></td>
<td>
<button value={{dvd.DvdId}} class="btn btn-primary" id="btnDelete" ng-click="delete()">Delete</button>
</td>
<td ui-if{{dvd.Loan}}="true" style="color: green;">Available</td>
<td ui-if{{dvd.Loan}}="false" style="color: red;">Out on Loan</td>
</tr>
</tbody>
使用NG-如果該 –
語法UI,如果{{dvd.Loan}} =看起來不正確 – YOU
納克如果給我同樣的結果@SterlingArcher –