Thank you! Problem solved
Thank you! Problem solved
After some testing, I found out that currently '$scope.$close()' just works.
So a button is bound to the activateService() function that I have defined on the SCOPE of the modal. That function then has access to $scope.$close() which could be called when a asynchronous service call has returned.
Thank you very much for sharing this! It's much easier like this!