angular/components

Add `completed` event for stepper / steps

Open

#12.908 aberto em 30 de ago. de 2018

Ver no GitHub
 (18 comments) (6 reactions) (0 assignees)TypeScript (6.650 forks)batch import
P4area: cdk/stepperarea: material/stepperfeaturegood first issuehelp wanted

Métricas do repositório

Stars
 (24.044 stars)
Métricas de merge de PR
 (Mesclagem média 3d 12h) (98 fundiu PRs em 30d)

Description

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.

Guia do colaborador