Support async ErrorStateMatcher
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
#### Please describe the feature you would like to request.
Currently, `ErrorStateMatcher` doesn't support return type `Promise` and `Observable`. Its return type is only `boolean`.
#### What is the use-case or motivation for this proposal?
I need to show `` when checked `input` is invalid after validation. This validation does need to call HTTP request(async). For example, when ID field in registration form is not unique, i should show `` because registration form doesn't allow to use the input's value as duplicated ID with other user. To provide this feature, `ErrorStateMatcher` has to support return type as `Promise` or `Observable`.
コントリビューションガイド
調査の方向性
まず ErrorStateMatcher API と既存の mat-error 検証フローを読み、入力の有効性がどのように確認されているかに注目します。要求されている Promise と Observable のケースを比較し、重複する ID に対して非同期検証の結果が適切な mat-error 状態を確実に発生させることを完了の定義とします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100