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

Method isErrorState

src/dev-app/select/select-demo.ts:23–28  ·  view source on GitHub ↗
(control: FormControl | null)

Source from the content-addressed store, hash-verified

21/** Error any time control is invalid */
22export class MyErrorStateMatcher implements ErrorStateMatcher {
23 isErrorState(control: FormControl | null): boolean {
24 if (control) {
25 return control.invalid;
26 }
27 return false;
28 }
29}
30
31type DisableDrinkOption = 'none' | 'first-middle-last' | 'all';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected