angular material stepper add new step items dynamically on every click

后端 未结 2 1637
失恋的感觉
失恋的感觉 2021-01-05 01:12

I am using angular material in my project. I want to add extra stepper item(mat-step) on every click of addItem button.

I created a plunker here. https:

2条回答
  •  梦毁少年i
    2021-01-05 01:24

    You can use FormGroup and FormArray to archive this.

    Check the below example for that

    https://stackblitz.com/edit/dynamic-stepper-material

提交回复
热议问题