From 70f6a46f1cbe090c946fd5ffea13f78be216ac05 Mon Sep 17 00:00:00 2001 From: Matt Greenland Date: Tue, 25 Aug 2015 16:58:45 -0700 Subject: [PATCH] fix(forms): Also update viewModel in NgFormControl --- modules/angular2/src/core/forms/directives/ng_form_control.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/angular2/src/core/forms/directives/ng_form_control.ts b/modules/angular2/src/core/forms/directives/ng_form_control.ts index 02d7925fef..9a44a36a58 100644 --- a/modules/angular2/src/core/forms/directives/ng_form_control.ts +++ b/modules/angular2/src/core/forms/directives/ng_form_control.ts @@ -84,6 +84,7 @@ export class NgFormControl extends NgControl implements OnChanges { } if (isPropertyUpdated(c, this.viewModel)) { this.form.updateValue(this.model); + this.viewModel = this.model; } }