I have a JSON file that contains the page content I wish to load. In it, I have a link that looks like this:
<a data-ng-click='foo()'>Bar</a> When I load the page content into the page as HTML:
<p class="body" ng-bind-html="jsonText | raw"></p> using this filter:
app.filter('raw', function ($sce) { return function (input) { return $sce.trustAsHtml(input); } }); the link does not trigger foo() call on click. Is what I'm trying to do impossible or am I doing something wrong?