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

Method _dirtyCheckNativeValue

src/material/input/input.ts:457–464  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers 1

ngDoCheckMethod · 0.95

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected