MCPcopy Create free account
hub / github.com/angular/angular / viewToModelUpdate

Method viewToModelUpdate

packages/forms/src/directives/ng_model.ts:354–357  ·  view source on GitHub ↗

* @description * Sets the new value for the view model and emits an `ngModelChange` event. * * @param newValue The new value emitted by `ngModelChange`.

(newValue: any)

Source from the content-addressed store, hash-verified

352 * @param newValue The new value emitted by `ngModelChange`.
353 */
354 override viewToModelUpdate(newValue: any): void {
355 this.viewModel = newValue;
356 this.update.emit(newValue);
357 }
358
359 private _setUpControl(): void {
360 this._setUpdateStrategy();

Callers 5

updateControlFunction · 0.45
onChangeFunction · 0.45
syncPendingControlsFunction · 0.45
onControlChangeFunction · 0.45
updateControlFromCustomFunction · 0.45

Calls 1

emitMethod · 0.65

Tested by

no test coverage detected