Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49171

Toggle in a generated list in ionic

$
0
0

@youssefff wrote:

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>

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49171

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>