feat(checkbox): stand-alone checkbox components

This commit is contained in:
Adam Bradley
2016-01-26 20:12:30 -06:00
parent f20ae8fd3f
commit 6890532ab4
5 changed files with 21 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ class E2EApp {
this.grapeDisabled = true;
this.grapeChecked = true;
this.standAloneChecked = true;
}
toggleGrapeChecked() {

View File

@@ -48,6 +48,11 @@
<button (click)="doSubmit($event)" outline small class="e2eSubmit">Submit</button>
</p>
<p>
<ion-checkbox [(ngModel)]="standAloneChecked"></ion-checkbox>
Stand-alone checkbox: {{standAloneChecked}}
</p>
<p aria-hidden="true" padding>
<code>appleCtrl.dirty: {{fruitsForm.controls.appleCtrl.dirty}}</code><br>
<code>appleCtrl.value: {{fruitsForm.controls.appleCtrl.value}}</code><br>