Just starting out with AngularJS and hoping for some assistance :)
I have a div that has the details of an activity, formatted in HTML. To display this content correctly, I am using trustAsHTML:
<div class="description-div">
<div ng-bind-html="renderHtml(booking.description)">
</div>
</div>
There is a $rootScope function involved:
$rootScope.renderHtml = function (htmlCode) {
return $sce.trustAsHtml(htmlCode);
};
The description may include images, so I would like to trigger a popup when an image is clicked.
Any suggestions on how to achieve this? I believe a directive might be needed, but my attempts so far have been unsuccessful.
Appreciate any guidance you can provide!