2
我有以下幾點:有什麼方法可以啓用/禁用在Angular中的表中顯示列?
<select
data-ng-model="option.selectedValue"
data-ng-options="item.id as item.name for item in option.selects">
</select>
<table>
<thead>
<tr>
<th>Id</th>
<th>City</th>
<th>Street</th>
</tr>
</thead>
<tbody class="grid">
<tr data-ng-repeat="row in grid.data">
<td>{{ row.iD }}</td>
<td>{{ row.city }}</td>
<td>{{ row.street }}</td>
</tr>
</tbody>
</table>
有沒有辦法爲我改變它,因此街道列變得可見僅當option.selectedValue
等於0
你可以這樣: