ionic2:离子切换不切换

时间:2016-02-25 01:35:01

标签: ionic-framework ionic2

我有ionic2模态内容:

<ion-toolbar class="android-attr" primary>
  <ion-title>
    Search Settings
  </ion-title>
  <ion-buttons start>
    <button (click)="dismiss()">
      <span primary showWhen="ios">Cancel</span>
      <ion-icon name='close' showWhen="android"></ion-icon>
    </button>
  </ion-buttons>
</ion-toolbar>
<ion-content class="has-header">
  <ion-list>
    <ion-item>
      <h2>Search by tags</h2>
      <p>I've had a pretty messed up day. If we just...</p>
      <p>I've had a pretty messed up day. If we just...</p>
      <ion-icon name="trash" item-right></ion-icon>
    </ion-item>
    <ion-item>
      <ion-label>Use my current location</ion-label>
      <ion-toggle checked="true"></ion-toggle>
      <h3>Don't Know What To Do!</h3>
    </ion-item>
    <ion-item>
      <p>I've had a pretty messed up day. If we just...</p>
    </ion-item>
  </ion-list>
  <div padding>
    <button primary block>Apply</button>
  </div>  
</ion-content>

此处的问题既不是ion-toggle也不是ion-checkbox切换。我只是添加到html。

0 个答案:

没有答案