title: Ionic toggle group check one item and uncheck the others
body: <p>I have created a toggle view to select available items in Ionic, and if anyone of the item were selected, I want to uncheck all the other items. I also have a scan function which allows me to dynamically update the items list </p>
  
  <p>I'm fairly new to ionic, so I just have the following code in my <code>settings.html</code></p>
  
  <pre><code>&lt;ion-toggle ng-repeat="item in itemsList"
           ng-model="item.checked"&gt;
      {{ item.text }}
  &lt;/ion-toggle&gt;
  </code></pre>
  
  <p>and then I have created a simple <code>settings.js</code>:</p>
  
  <pre><code>(function () {
      'use strict';
  
      angular.module('i18n.setting').controller('Settings', Settings);
      SettingController.$inject = ['$scope'];
  
      function Settings($scope){
          $scope.settingsList = [
              {text: "item1", checked: true},
              {text: "item2", checked: false}
          ];
      }
  })();
  </code></pre>
  
  <p>I know <code>ng-model="item.checked"</code> will do the job of changing the attribute <code>$scope.settingsList.checked</code> for me. But what I want to know this how to use it to check one items and uncheck all the other ones?</p>