title: How to correct this redundancy in an array?
body: <p>I'm building an app in ionic, and I need to pass items into another array, but when I pass the same item again it's considered the same item - really - but I need that to not happen. I need them to be considered different or or at least be considered different. Each item(is an object) of array have a var <code>"qntt"(quantity)</code> and when this bug happen, instead put the same item in array, plus one in this var. OBS: I'm using <code>ng-repeat="item in items track by $index"</code> in html.</p>
  
  <pre><code>&lt;ion-view title="Order"&gt;
  &lt;ion-content overflow-scroll="true" padding="true" style="background: url(img/background1.jpg) no-repeat center;" class="has-header" ng-controller="pedidoCtrl"&gt;
      &lt;button class="button button-dark button-small button-block" ng-click="showDelete = !showDelete"&gt;Remover&lt;/button&gt;
      &lt;ion-list show-delete="showDelete"&gt;
          &lt;ion-item class="item-thumbnail-left item-remove-animate" ng-repeat="item in items track by $index"&gt;
              &lt;ion-delete-button class="ion-minus-circled" ng-click="deleteItem(item)"&gt;&lt;/ion-delete-button&gt;
                  &lt;img src="{{item.img}}"&gt;
                  &lt;h2&gt;{{item.nome}}&lt;/h2&gt;
                  &lt;div class="row"&gt;
                      &lt;div class="col col-60"&gt;
                          &lt;h2&gt;R{{item.subtotal | currency}}&lt;/h2&gt;
                      &lt;/div&gt;
                      &lt;div class="col col-15"&gt;
                          &lt;button class="button button-clear button-assertive button-small icon ion-minus" ng-click="subQtt(item)"&gt;&lt;/button&gt;
                      &lt;/div&gt;
                      &lt;div class="col col-10"&gt;
                          &lt;h2&gt;{{item.qtt}}&lt;/h2&gt;
                      &lt;/div&gt;
                      &lt;div class="col col-15"&gt;
                          &lt;button class="button button-icon-right button-clear button-assertive button-small icon ion-plus" ng-click="addQtt(item)"&gt;&lt;/button&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
          &lt;/ion-item&gt;
      &lt;/ion-list&gt;
      &lt;button style="text-align:right;" class="button button-assertive  button-block icon-left ion-cash"&gt;R{{total | currency}}&lt;/button&gt;
      &lt;div style="margin-right:-20px;"&gt;
          &lt;button style="left:-10px;" class="button button-dark button-large button-full icon ion-android-cart"&gt;Order&lt;/button&gt;
      &lt;/div&gt;
  &lt;/ion-content&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>.controller('orderCtrl', function($scope, productService) { 
  $scope.items = null;
  $scope.items = productService.getProducts();
  
  $scope.deleteItem = function(item){
      $scope.items.splice($scope.items.indexOf(item), 1);
  };
  
  $scope.$watchCollection('items', function(array) {
       if (array) {
              $scope.total = array.reduce(function(total,item) {
                      return total + item.subtotal;
                  },0);
        } 
        $scope.addQtt = function(item){
          item.qtt = item.qtt + 1;
          item.subtotal = item.price * item.qtt;
          $scope.total = array.reduce(function(total,item) {
                      return total + item.subtotal;
                  },0);
         };
          $scope.subQtt = function(item){
              if(item.qtt &gt; 1)
              {
                  item.qtt--;
                  item.subtotal = item.price * item.qtt;
              }
              else
              {
                  $scope.items.splice($scope.items.indexOf(item), 1);
              }
              $scope.total = array.reduce(function(total,item) {
                      return total + item.subtotal;
                  },0);
      }; 
   });
  
  })
  
  .service('productService', [function(){
  var productList = [];
  
  var addProduct = function(product) {
      productList.push(product);
  };
  
  var getProducts = function(){
      return productsList;
  };
  return {
      addProduct: addProduct,
      getProducts: getProducts,
  };
  }]);
  </code></pre>