我有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。