I am using JS Fancybox and trying to work it with Angular. But Angular is not detecting HTML directives in Fancybox insertions on DOM. There is no iFrame etc.
Here is JSFiddle: https://jsfiddle.net/akkara/sL4k3ndz/10/
var app = angular.module("myApp",[]) ;
app.controller("myCtrl",function($scope) {
$scope.lorem = "abc" ;
$scope.ipsum = "def" ;
}) ;
app.directive("test", function() {
return {
template : "<strong>{{ipsum}}</strong>"
};
});
$("a").click(function(){
$.fancybox.open('Before <test> {{lorem}} After') ;
})
How to force Angular to handle HTML that inserted by Fancybox etc?