Directives can have functions passed into them, like how the abstractId is passed in. For the syntax and what it means check out this link: http://www.ng-newsletter.com/posts/directives.html near the require option section.

You could add a function to the controller that deals with showing the modal, it could be passed what the modal should have in it too.