From c20191eb882817e1e93049bb1de9eee0a1ca7c6d Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Thu, 17 Dec 2015 19:39:20 -0500 Subject: [PATCH] wrap console log in if --- ionic/components/text-input/text-input.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ionic/components/text-input/text-input.ts b/ionic/components/text-input/text-input.ts index b8241ef79d..c116534eb6 100644 --- a/ionic/components/text-input/text-input.ts +++ b/ionic/components/text-input/text-input.ts @@ -491,7 +491,7 @@ export class TextInputElement { } ngAfterContentChecked() { - console.log("Value", this.ngControl.value); + if (this.ngControl) console.log("Value", this.ngControl.value); if (this.ngControl) this.value = this.ngControl.value; this.wrapper && this.wrapper.hasValue(this.value); }