MCPcopy
hub / github.com/angular/angular / viewToModelUpdate

Method viewToModelUpdate

packages/forms/src/directives/ng_model.ts:337–340  ·  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

335 * @param newValue The new value emitted by `ngModelChange`.
336 */
337 override viewToModelUpdate(newValue: any): void {
338 this.viewModel = newValue;
339 this.update.emit(newValue);
340 }
341
342 private _setUpControl(): void {
343 this._setUpdateStrategy();

Callers 4

updateControlFunction · 0.45
onChangeFunction · 0.45
syncPendingControlsFunction · 0.45
ngControlCreateFunction · 0.45

Calls 1

emitMethod · 0.65

Tested by

no test coverage detected