# Toggle in a generated list in ionic

**URL:** <https://forum.ionicframework.com/t/toggle-in-a-generated-list-in-ionic/62015>\
**Category:** ionic-v1\
**Created:** [August 30, 2016, 9:51am UTC](https://forum.ionicframework.com/t/toggle-in-a-generated-list-in-ionic/62015 "2016-08-30T09:51:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![youssefff](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/youssefff/32/102776_2.png) [@youssefff](https://forum.ionicframework.com/u/youssefff)\
**Post date:** [August 30, 2016, 9:51am UTC](https://forum.ionicframework.com/t/toggle-in-a-generated-list-in-ionic/62015/1 "2016-08-30T09:51:01Z")

</div>

Hi guys,  
I’m new to ionic developpement, I’m trying to load some data into a list,it works well, and i added a toggle in each list,and it works too, but the problem when click on a toggle, all of them become active, heres my code, can any body help me please how to resolve this problem

```
<div class="item item-divider" >{{key}}</div>
<li class="item item-toggle" ng-repeat="var in value">
  {{var.designation}}:{{var.id}}
  <label class="toggle toggle-positive">
    <input type="checkbox" ng-model="check.bool" ng-click="check.isActive()">
    <div class="track">
      <div class="handle"></div>
    </div>
  </label>
</li>

```
