title: How to get the Total value in column in angularjs?
body: <p>I'm new to angularjs. How to get the total amount in the table Total Amount column and display in input textbox? I think this plunker can solve my problem but I can't access it now. <a href="http://plnkr.co/edit/CHBm8RCqW5RNZWrzAe5r?p=preview" rel="nofollow noreferrer">http://plnkr.co/edit/CHBm8RCqW5RNZWrzAe5r?p=preview</a></p>
  
  <p>Here is my table sample</p>
  
  <p><a href="https://i.stack.imgur.com/BYheB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BYheB.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;table&gt;
                  &lt;thead&gt;
                      &lt;tr&gt;
  
                          &lt;th&gt;Product&lt;/th&gt;
                          &lt;th&gt;Quantity&lt;/th&gt;
                          &lt;th&gt;Total Amount&lt;/th&gt;
  
  
                      &lt;/tr&gt;
                  &lt;/thead&gt;
                  &lt;tbody&gt;
                      &lt;tr ng-repeat="payment_queue in data | filter:searchFilter"&gt;
  
                          &lt;td&gt;{{payment_queue.product_name}}&lt;/td&gt;
                          &lt;td&gt;{{payment_queue.sold_quantity}}&lt;/td&gt;
                          &lt;td&gt;{{payment_queue.amount}}&lt;/td&gt;
  
                      &lt;/tr&gt;
                  &lt;/tbody&gt;
              &lt;/table&gt;
  
  Total Amount: &lt;input type="text value=""&gt; &lt;--- the total amount value goes here...
  </code></pre>
  
  <p>js</p>
  
  <pre><code>var myApp = angular.module('myApp', ['ngRoute']); 
      myApp.controller('productsalesController', ['$scope', '$http', function ($scope, $http) {
  
  
  
                      $scope.data=[];
  
                      $http.get("../php/paymentQueuedata.php")
                          .success(function(data){
                              $scope.data = data;
                          })
                          .error(function() {
                              $scope.data = "error in fetching data";
                          });
  
           }]);
  </code></pre>
  
  <p>php json</p>
  
  <pre><code>    &lt;?php
      //database settings
      $connect = mysqli_connect("localhost", "root", "", "rmsdb");
  
      $result = mysqli_query($connect, "select * from payment_queue");
  
  
  $data = array();
  
  while ($row = mysqli_fetch_array($result)) {
    $data[] = $row;
  }
      print json_encode($data);
  ?&gt;
  </code></pre>