我重複與Angularjs的div如下:點擊後,刪除DIV
<div class="large-12 eachRow greyRow" ng-repeat="role in bindRoles">
<div class="large-10 columns">
{{role}}
</div>
<div class="large-2 columns">
<input type="checkbox" />
<i class="fa fa-minus-circle minusIconStyle"></i>
</div>
</div>
在點擊,圖標與minusIconStyle
類。我需要單獨刪除特定的行。我如何用angularjs實現這一點?
請幫忙, 謝謝。
當你點擊'我'你想只刪除第一個孩子'div'或兩個孩子? – 2014-09-06 04:26:48
然後整個div:'greyRow'。 – 2014-09-06 04:28:45
通過刪除,你的意思是隱藏行? – 2014-09-06 04:35:39