# Ng-repeat changing attribute for all elements of the array?

**URL:** <https://forum.ionicframework.com/t/ng-repeat-changing-attribute-for-all-elements-of-the-array/42010>\
**Category:** cordova\
**Created:** [January 25, 2016, 10:16am UTC](https://forum.ionicframework.com/t/ng-repeat-changing-attribute-for-all-elements-of-the-array/42010 "2016-01-25T10:16:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IonBruno](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@IonBruno](https://forum.ionicframework.com/u/IonBruno)\
**Post date:** [January 25, 2016, 10:16am UTC](https://forum.ionicframework.com/t/ng-repeat-changing-attribute-for-all-elements-of-the-array/42010/1 "2016-01-25T10:16:05Z")

</div>

The json I’m getting server is too long, so I’ll illustrate with a json I found on the internet in a forum -\>[http://stackoverflow.com/questions/26987157/ng-repeat-track-by-index-returning-no-results-in-ionic-cordova-app](http://stackoverflow.com/questions/26987157/ng-repeat-track-by-index-returning-no-results-in-ionic-cordova-app)  
Suppose the attributes in this example json file is a ion-check, because that’s what I’m using.  
The list here is product and attributes are the options that the user can choose. So you can add the same product with different items.  
So after he mark the ion-check he clicks a button that adds one item of ng-repeat in an array ($ scope.array1.push (elemento\_exemplo)).  
The problem is that when selecting a product attribute 1 for example, automatically changing is the same attribute for all product1 the array.  
How to do this without amending the other products already added to the array?
