For a test, I want to create a modal instance, then access it's scope, using something like the following pseudo-codeL
var modalInstance = $modal.open({ ... })
var scope = modalInstance.getScope()
Of course, the modalInstance returned by $modal.open() as described in https://angular-ui.github.io/bootstrap/#/modal does not have a method like getScope().
Is there some other way to gain access to the scope object that a modal instance created?
This may be related to 24373220.