MCPcopy Create free account
hub / github.com/angular/components / _dirtyCheckNativeValue

Method _dirtyCheckNativeValue

src/material/input/input.ts:459–466  ·  view source on GitHub ↗

Does some manual dirty checking on the native input `value` property.

()

Source from the content-addressed store, hash-verified

457
458 /** Does some manual dirty checking on the native input `value` property. */
459 protected _dirtyCheckNativeValue() {
460 const newValue = this._elementRef.nativeElement.value;
461
462 if (this._previousNativeValue !== newValue) {
463 this._previousNativeValue = newValue;
464 this.stateChanges.next();
465 }
466 }
467
468 /** Does some manual dirty checking on the native input `placeholder` attribute. */
469 private _dirtyCheckPlaceholder() {

Callers 1

ngDoCheckMethod · 0.95

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected