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

Function ngDoCheck

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

setMethod · 0.80
updateErrorStateMethod · 0.45

Tested by

no test coverage detected