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

Function isInvalid

src/cdk/stepper/stepper.ts:634–638  ·  view source on GitHub ↗
(control: StepControl)

Source from the content-addressed store, hash-verified

632}
633
634function isInvalid(control: StepControl): boolean {
635 // Note: it's a bit redundant to have both `isValid` and `isInvalid`. We need both, because
636 // some internal apps mock out `invalid` specifically so `!valid` won't hit the mock.
637 return isField(control) ? control().invalid() : control.invalid;
638}
639
640function isPending(control: StepControl): boolean {
641 return isField(control) ? control().pending() : control.pending;

Callers 2

_getDefaultErrorMethod · 0.85

Calls 2

isFieldFunction · 0.85
invalidMethod · 0.45

Tested by

no test coverage detected