For example, if I am at the second step of a form and click next, I want to get a console log of "2", or the id of the corresponding div. I tried to use event.detail.indexStep but it does not work. There's stepper.to(n) to jump to step n, but there's nothing that will return n of current step, something like stepper.currentIndex(). I need it to validate my form with Parsley. Alternatively, if a sample code of bs-stepper with parsley integration can be given, then that would be great!
For example, if I am at the second step of a form and click next, I want to get a console log of "2", or the id of the corresponding div. I tried to use event.detail.indexStep but it does not work. There's stepper.to(n) to jump to step n, but there's nothing that will return n of current step, something like stepper.currentIndex(). I need it to validate my form with Parsley. Alternatively, if a sample code of bs-stepper with parsley integration can be given, then that would be great!