angular / angular/components

Add `completed` event for stepper / steps

オープン
#12,908 コメント 18 件 リアクション 6 件 担当者 0 名 GitHub で見る
area: cdk/stepper area: material/stepper feature good first issue help wanted P4
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

#### Bug, feature request, or proposal:
Proposal

#### What is the expected behavior?
Optionally allow the consumer define if it wants to auto-advance an step when it completes (by using [completed] step property)

#### What is the current behavior?
Nothing happens as soon the step is marked as completed

#### What is the use-case or motivation for changing an existing behavior?
Use Observable based state such as NgRx stores, and in a more functional way allow set the stepper navigation based on state, now I have to subscribe to store and call navigation via an stepper instance in order to handle steps advance, too imperatively and also results in a awful timing issues because when stepper.next() is called and [completed] property update is on its way nothing happens.

#### Is there anything else we should know?
I'm willing to implement such feature. No breaking changes would be introduced.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Angular Material の stepper/steps コンポーネントのエントリーポイントから始め、既存の完了済みステッププロパティとナビゲーションがどのように処理されているかを確認します。オプションの自動進行契約、その状態更新との相互作用、および必要なリグレッションカバレッジを明確にします。完了の条件は、その動作が opt-in であり、既存のナビゲーションを壊さないことです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。