fix(forms): Also update viewModel in NgFormControl

This commit is contained in:
Matt Greenland 2015-08-25 16:58:45 -07:00 committed by vsavkin
parent e36966b83c
commit 70f6a46f1c
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}