Sum of all the column in angularjs

Anilananda Chakrabortty

Anilananda Chakrabortty

Sep 5 2017 4:30 AM
<table class="table table-hover table-responsive ">
<thead class="bg-primary">
<th>Sl. No</th>
<th >Name</th>
<tr ng-repeat="employee in emp | filter:MyData>
<td>All TotalTotal</td>
<td>Total Age of n employees</td>
<td>Total Salary of n employees</td>
This is my table ...at the end i want all totals of all employee age and salary...
i also used filter in my table ...
so total should work in runtime and as well as in the time of filter...
Here MyData is the filter Parameter ....
Can any one tell how to get the actual output

Sl. No Name Age Salary
1 aa 20 15000
2 bb 25 25000

Total 45 40000

It should work with filter ....
 I'm no getting the logic..plz help any one....

Answers (3)