Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular Archwizard is not working inside ng bootstrap modal #373

Open
imsonofgod opened this issue Mar 15, 2022 · 1 comment
Open

Angular Archwizard is not working inside ng bootstrap modal #373

imsonofgod opened this issue Mar 15, 2022 · 1 comment

Comments

@imsonofgod
Copy link

imsonofgod commented Mar 15, 2022

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
Copy link
Author

imsonofgod commented Mar 15, 2022

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant