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

Function ngDoCheck

src/material/datepicker/date-range-input-parts.ts:122–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 }
121
122 ngDoCheck() {
123 if (this.ngControl) {
124 // We need to re-evaluate this on every change detection cycle, because there are some
125 // error triggers that we can't subscribe to (e.g. parent form submissions). This means
126 // that whatever logic is in here has to be super lean or we risk destroying the performance.
127 this.updateErrorState();
128 }
129
130 this._rawValue.set(this._elementRef.nativeElement.value);
131 }
132
133 /** Gets whether the input is empty. */
134 isEmpty(): boolean {

Callers

nothing calls this directly

Calls 2

setMethod · 0.80
updateErrorStateMethod · 0.45

Tested by

no test coverage detected