Hi There are two option to calculate sum 
 
one is looping your array in javascript and calculate another is creating own filter 
 
To loop data 
  1. $scope.getTotal = function(){  
  2.     var total = 0;  
  3.     for(var i = 0; i < $scope.cart.products.length; i++){  
  4.         var product = $scope.cart.products[i];  
  5.         total += (product.price * product.quantity);  
  6.     }  
  7.     return total;  
  8. }  
Creating Filter
 
You can find fiddle link https://jsfiddle.net/51ok4mpb/
  1. angular.module("sampleApp", []).filter('totalSumPriceQty', function() {  
  2.     return function(data, key1, key2) {  
  3.       if (angular.isUndefined(data) || angular.isUndefined(key1) || angular.isUndefined(key2))  
  4.         return 0;  
  5.       var sum = 0;  
  6.       angular.forEach(data, function(v, k) {  
  7.         sum = sum + (parseInt(v[key1]);  
  8.       });  
  9.       return sum;  
  10.     }  
  11.   })