Click here to Skip to main content
14,389,295 members
Rate this:
Please Sign up or sign in to vote.
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 24-Jun-17 0:09am
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100