に合算することがあり、それはあなたができるは私がここにあるngRepeatの合計を取得しようとしていますし、私はhtmlファイルでそれをやりたいangularjs
<div class = "row" ng-repeat= "product in products">
<div class = "col"><input type="checkbox" name="check" value="{{product.product_id}}"></div>
<div class = "col">{{product.product_name}}</div>
<div class = "col"><input type="text" ng-model="quantity"></div>
<div class = "col">{{product.price * quantity}}</div>
</div>
<div class = "row" align="center">
<div class="col">
<strong>Total : {{total}}</strong>
</div>
何を合計したいですか?あなたの質問を編集してより明快にしていただけますか?あなたはngRepeast todalしたいと思っていますどのように多くの製品の合計が欲しいのですか、またはすべてのprioductsのコストの合計(製品価格*数量)が欲しいですか? – Naitik
http://stackoverflow.com/questions/22731145/calculating-sum-of-repeated-elements-in-angularjs-ng-repeat(回答あり) – Keugels
とまったく同じ質問が製品固有のものでなければなりません。 ng-model = "quantity"をng-model = "product.quantity"に置き換えてください – John