I am using an angular bootstrap modal with an ng-bind-html directive in the template but the ng-clicks in the html that is being binded do not work.
$scope.shouldWork = function () {
// stuff
};
$scope.html1 = '<span ng-click="shouldWork()"></span>'
var modal = $modal.open({
$scope,
template: '<div ng-bind-html="html1"></div>'
});
shouldWork()
never gets called. Is there anyway to get this to work?