angular-archwizard icon indicating copy to clipboard operation
angular-archwizard copied to clipboard

Angular Archwizard is not working inside ng bootstrap modal

Open imsonofgod opened this issue 3 years ago • 1 comments

Angular Archwizard doesn't work inside ng bootstrap modal. Although the wizard is displayed visually, when pressing the continue button, by code it does not recognize the element: this.wizard.goToNextStep(); and it has an undefined value, this is the error: "Cannot read properties of undefined (reading 'goToNextStep')".

does anyone know what is causing this error? does Archwizard not support ng-bootstrap modal scripts?

imsonofgod avatar Mar 15 '22 16:03 imsonofgod

I can solve this problem. I just had to separate the wizard from another component and call it from the modal. Look this:

<ng-template #content let-modal> <app-frm-wizard #wizard></app-frm-wizard> </ng-template>

imsonofgod avatar Mar 15 '22 18:03 imsonofgod