Determines whether the error state can be shown.
()
| 307 | |
| 308 | /** Determines whether the error state can be shown. */ |
| 309 | _showError(): boolean { |
| 310 | // We want to show the error state either if the user opted into/out of it using the |
| 311 | // global options, or if they've explicitly set it through the `hasError` input. |
| 312 | return this._stepperOptions.showError ?? this._customError() != null; |
| 313 | } |
| 314 | } |
| 315 | |
| 316 | @Directive({ |