MCPcopy Index your code
hub / github.com/angular/components / hasErrors

Method hasErrors

src/material/stepper/testing/step-harness.ts:86–88  ·  view source on GitHub ↗

* Whether the step is currently showing its error state. Note that this doesn't mean that there * are or aren't any invalid form controls inside the step, but that the step is showing its * error-specific styling which depends on there being invalid controls, as well as the * `ErrorStateMat

()

Source from the content-addressed store, hash-verified

84 * option was enabled through the `STEPPER_GLOBAL_OPTIONS` injection token.
85 */
86 async hasErrors(): Promise<boolean> {
87 return (await this._getIconState()) === 'error';
88 }
89
90 /** Whether the step is optional. */
91 async isOptional(): Promise<boolean> {

Callers 2

withMethod · 0.45

Calls 1

_getIconStateMethod · 0.95

Tested by

no test coverage detected