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:
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.