From 4758b9ae3065a2d34339663243aabdcab8023240 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 12 Oct 2015 14:51:12 -0500 Subject: [PATCH] Add ngModel to switch demo --- ionic/components/switch/test/basic/index.ts | 2 ++ ionic/components/switch/test/basic/main.html | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/ionic/components/switch/test/basic/index.ts b/ionic/components/switch/test/basic/index.ts index 066f8190f2..3d407a0bad 100644 --- a/ionic/components/switch/test/basic/index.ts +++ b/ionic/components/switch/test/basic/index.ts @@ -25,6 +25,8 @@ class IonicApp { this.grapeDisabled = true; this.grapeChecked = true; + + this.myModel = true; } toggleGrapeChecked() { diff --git a/ionic/components/switch/test/basic/main.html b/ionic/components/switch/test/basic/main.html index 6e7151425d..c640bfeb06 100644 --- a/ionic/components/switch/test/basic/main.html +++ b/ionic/components/switch/test/basic/main.html @@ -28,6 +28,10 @@ Secondary color + + I'm an NgModel + + @@ -47,6 +51,7 @@ cherry.value: {{fruitsForm.controls.cherryCtrl.value}}
grape.dirty: {{fruitsForm.controls.grapeCtrl.dirty}}
grape.value: {{fruitsForm.controls.grapeCtrl.value}}
+ ngModel.value: {{myModel}}