Set stepper in second step in clarity design angular

434 views Asked by At

How can I set stepper in second step automatically when I open page in clarity design angular?

https://stackblitz.com/edit/clr-stepper-demo

1

There are 1 answers

3
Akif On

You can set an id for the first next button.

     <button id="firstButton" clrStepButton="next">next</button>

And you can click it in ngOnInit().

     ngOnInit() 
       { 
         let el: HTMLElement = document.getElementById('firstButton');
         el.click();
       }