ng-repeat trong angular

Áp dùng ng-show,ng-hide ví dụ:

<li ng-repeat="Customer in Customers" ng-show="Customer.Status=='Active'">{{Customer.Name}}</li>
<li ng-repeat="Customer in Customers" ng-hide="Customer.Status=='Active'">{{Customer.Name}}</li>

 


Một ví dụ lồng điều kiện
<li ng-repeat="l in Lich"  ng-if="l.BienSoXe === x.BienSoXe && l.Tuyen === t.Tuyen && l.Gio==t.Gio ">

  Tham khảo:

<div ng-if="$last" ng-init="batdauloc()"></div> 

 https://stackoverflow.com/questions/26087509/angularjs-count-filtered-items

 

Lặp có sử dụng tính tổng theo lọc

https://plnkr.co/edit/Gb8XiCf2RWiozFI3xWzp?p=preview&preview