mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
@@ -18,8 +18,8 @@ class E2EApp {
|
||||
fruitsForm: ControlGroup;
|
||||
grapeDisabled: boolean;
|
||||
grapeChecked: boolean;
|
||||
kiwiModel: boolean;
|
||||
strawberryModel: boolean;
|
||||
kiwiValue: boolean;
|
||||
strawberryValue: boolean;
|
||||
formResults: string;
|
||||
|
||||
constructor() {
|
||||
@@ -32,9 +32,6 @@ class E2EApp {
|
||||
|
||||
this.grapeChecked = true;
|
||||
this.grapeDisabled = true;
|
||||
|
||||
this.kiwiModel = true;
|
||||
this.strawberryModel = false;
|
||||
}
|
||||
|
||||
toggleGrapeChecked() {
|
||||
@@ -45,6 +42,16 @@ class E2EApp {
|
||||
this.grapeDisabled = !this.grapeDisabled;
|
||||
}
|
||||
|
||||
kiwiChange(ev) {
|
||||
console.log('kiwiChange', ev);
|
||||
this.kiwiValue = ev.checked;
|
||||
}
|
||||
|
||||
strawberryChange(ev) {
|
||||
console.log('strawberryChange', ev);
|
||||
this.strawberryValue = ev.checked;
|
||||
}
|
||||
|
||||
doSubmit(ev) {
|
||||
console.log('Submitting form', this.fruitsForm.value);
|
||||
this.formResults = JSON.stringify(this.fruitsForm.value);
|
||||
|
||||
Reference in New Issue
Block a user