<ion-view view-title="Settings">
  <ion-content class="padding">

    <ion-list>

      <ion-item class="item item-divider item-text-wrap">
        Choose type of adverts
        <p>Full screen ads will generate more revenue for your chosen charity</p>
      </ion-item>

      <ion-checkbox ng-repeat="adType in adTypes"
                    ng-model="value"
                    ng-checked="{{adType.isOn}}"
                    ng-change="onAdTypeCheckboxTap();">
                    {{ adType.name }}
      </ion-checkbox>

    </ion-list>

    <ion-list>

      <ion-item class="item item-divider">
        Use these locations
      </ion-item>

      <ion-toggle toggle-class="toggle"
      ng-repeat="location in locations"
      ng-model=value
      ng-change="onToggleLocationSetting( location )">{{location.name}}</ion-toggle>

    </ion-list>

    <ion-list>

      <ion-item class="item item-divider">
        Developer
      </ion-item>

      <ion-item class="item">
        <button class="button button-block button-stable button-outline" on-tap="resetDefaults();">
          Reset to Defaults
        </button>
      </ion-item>

      <ion-item class="item">
        <div class="item item-text-wrap">
          <p>{{platformSettings}}</p>
        </div>
      </ion-item>

    </ion-list>

  </ion-content>
</ion-view>

<ion-view view-title="Settings">
  <ion-content class="padding">

    <ion-list>

      <ion-item class="item item-divider item-text-wrap">
        Choose type of adverts
        <p>Full screen ads will generate more revenue for your chosen charity</p>
      </ion-item>

      <ion-checkbox ng-repeat="adType in adTypes"
                    ng-model="value"
                    ng-checked="{{adType.isOn}}"
                    ng-change="onAdTypeCheckboxTap();">
                    {{ adType.name }}
      </ion-checkbox>

    </ion-list>

    <ion-list>

      <ion-item class="item item-divider">
        Use these locations
      </ion-item>

      <ion-toggle toggle-class="toggle"
      ng-repeat="location in locations"
      ng-model=value
      ng-change="onToggleLocationSetting( location )"
      ng-checked="location.isOn">{{location.name}}</ion-toggle>

    </ion-list>

    <ion-list>

      <ion-item class="item item-divider">
        Developer
      </ion-item>

      <ion-item class="item">
        <button class="button button-block button-stable button-outline" on-tap="resetDefaults();">
          Reset to Defaults
        </button>
      </ion-item>

      <ion-item class="item">
        <div class="item item-text-wrap">
          <p>{{platformSettings}}</p>
        </div>
      </ion-item>

    </ion-list>

  </ion-content>
</ion-view>

Enable toggle checked from location data in location settings
Enable toggle checked from location data in location settings
