* 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
()
| 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> { |
no test coverage detected