fix(forms): Update NgModel's viewModel when model changes

Closes #3627
This commit is contained in:
Matt Greenland
2015-08-18 21:42:11 -07:00
committed by vsavkin
parent f14b212dc9
commit e36966b83c
2 changed files with 34 additions and 0 deletions

View File

@ -57,6 +57,7 @@ export class NgModel extends NgControl implements OnChanges {
if (isPropertyUpdated(c, this.viewModel)) {
this._control.updateValue(this.model);
this.viewModel = this.model;
}
}