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

Method ngDoCheck

src/material/chips/chip-grid.ts:288–295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286 }
287
288 ngDoCheck() {
289 if (this.ngControl) {
290 // We need to re-evaluate this on every change detection cycle, because there are some
291 // error triggers that we can't subscribe to (e.g. parent form submissions). This means
292 // that whatever logic is in here has to be super lean or we risk destroying the performance.
293 this.updateErrorState();
294 }
295 }
296
297 override ngOnDestroy() {
298 super.ngOnDestroy();

Callers

nothing calls this directly

Calls 1

updateErrorStateMethod · 0.95

Tested by

no test coverage detected