Click here to Skip to main content
15,910,234 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm still new to Angular and I am trying to get the sum of value of multiple items after ng-repeat.
I want at the end of the page to display the total Sum of all items(Total of SumHS in the code below). How can I do that?

What I have tried:

<md-list>
        <md-list-item class="md-3-line" ng-repeat="item in ctrl.rows">
            <span ng-style="{'background-color': item.color}" class="md-avatar initial-img">{{::item.Reference}}</span>
            <div class="md-list-item-text">
                <h3> {{::item.SumHS * 1000 | number}}</h3>                
                <h4>Submitted At: {{::item.REF_DATE | moment:'MMM, DD YYYY'}} <small>({{::item.Kr_n}})</small></h4>
                <h4>Payed At: {{::item.decree.assignments[0].DateI | moment:'MMM, DD YYYY'}}</h4>
            </div>
Posted
Updated 23-Jun-17 23:09pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900