In a brownfield application I encountered a old fancybox jquery plugin. This plugin was used throughout the whole application. This fancybox is just a modal dialog.
I wanted the content of the fancybox to be handled by angular.
To accomplish this, I used the following code:
You can find the code at: