I have a few modals I'm making use of. I can get them to open just fine with javascript, however; I have a few where the user will use a button click, in which calls a service. Upon the service being successful, I would like to close the modal automatically.
I have reviewed and attempted the documentation at http://angular-ui.github.io/bootstrap/ among others. I have tried using the $close() event, I have tried modalInstance.dismiss('cancel') and nothing seems to work. I just get an error saying its not defined.
Is there anything special to just closing a modal using ng-click within the JavaScript to closing the active modal?
I wouldn't keep asking these small things, have I not tried.