Source
void ngOnChanges(Map<String, SimpleChange> changes) { if (!this._added) { setUpControl(this._control, this); this._control.updateValueAndValidity(emitEvent: false); this._added = true; } if (isPropertyUpdated(changes, this.viewModel)) { this._control.updateValue(this.model); this.viewModel = this.model; } }