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
Cannot close the Modal through the NgbModalRef #722
Comments
This should be posted on StackOverflow rather than here. And you should always post your code as text, rather than as an image, since it makes it easier to read, copy and paste. Anyway, you're not initializing The code should be:
|
You're absolutely right, sorry for posting here, thanks a lot |
you saved my day. Thank you so much dude. |
I have a Modal with a form in it, and I want to close it on successful submit.
I save the NgbModalRef as a class property on the
open
method and im executing this code on submit:(had to create the
localModalRef
because of scope issues)As soon as it gets to the
close()
execution the console shouts:localModalRef.close is not a function
Cant seem to figure out what have i done wrong.
Thanks in advance.
The text was updated successfully, but these errors were encountered: