I want to create like button with ionic 1/angular js.

The problem is when like buttons doesnt work with ng-model within ng-repeat because all ng-model have same names.

This is the html so far.

```
<div ng-repeat="item in items">
 <div class = "item item-text-wrap">
          <button class="button button-block icon ion-thumbsup" ng-model="islike" ng-class="islike== true?'button-on':'button-light'" ng-click="changeLikeState(item.id);"> Like</button>
       </div>
</div>

```

I want to initialize the button state if a user already like this item or not. If user already like the item, `islike` is set to true otherwise `islike` set to false.

I want to create a function to check like state with `$http.get` call and set the `islike` based on the results
The problem is there are multiple item with same islike, How do you set `item.id` within `ng-model="islike"` to identify specific button?

Is this the correct approach ? How to solve this in ionic/angularjs?