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

Method isSignalErrorState

src/material/stepper/stepper.ts:117–121  ·  view source on GitHub ↗
(field: Field<unknown> | null)

Source from the content-addressed store, hash-verified

115 }
116
117 isSignalErrorState(field: Field<unknown> | null): boolean {
118 const originalErrorState = this._errorStateMatcher.isSignalErrorState?.(field) ?? false;
119 const customErrorState = !!(field && field().invalid() && this.interacted);
120 return originalErrorState || customErrorState;
121 }
122}
123
124@Component({

Callers

nothing calls this directly

Calls 1

invalidMethod · 0.45

Tested by

no test coverage detected