1

I want to load steps dynamically Like I have Offering component under that there are two steps label

  1. Offering detail(it should load offering detail component)
  2. Add User(it should display Add user component)

so stepper should display 2 steps only.

again I have Datasourceaccess component and under that 3 steps are there, so I want to build reusable stepper component which can be used by any components and should display steps according to components.

below stack blitz link, showcasing the above problem

StackBlitz : https://stackblitz.com/edit/angular-4xg2no

Fyi, here I am working on sharedwizard.component and sharedWizard.componet.html

dreamweiver
  • 6,002
  • 2
  • 24
  • 39

1 Answers1

0

You can use [selectedIndex]="stepIndex", and using the component's controller to update the stepIndex as you expected

Nguyen Phong Thien
  • 3,237
  • 1
  • 15
  • 36