SlideBox inside Modal

Hi Group,

I probably missed something, I have combined slide box inside modal and when I am done and click finish and save everything I call hide() on modal.
And when I am ready to invoke the modal again, the modal is opened but slider index is set to last step where I finished. So instead of seeing first page I see last one.

Or should be modal box, re-created using $ionicModal.fromTemplateUrl every times I finish action ?

Thanks,
Frank

It is solved. Not sure if tis correct but I used something I found here on the forum.

where my showModal will: read the template, initialize, and then use the promise returned by fromTemplateUrl where I call show dialog.
After I am done I will hide, remove.

I wonder if there is any other way so I do not have to destroy dialog and just call show/hide.

Thanks,
Frank