Skip to content Skip to sidebar Skip to footer

After Using $sce.trustashtml, Ng-click Not Working

I am trying to print to the screen custom html using angular. I am using $sce.trustAsHtml in combination with ng-bind-html to accomplish this. The goal is not only to be able to pr

Solution 1:

Use https://docs.angularjs.org/api/ngSanitize and bind the html. If this does not work, $digest to reboot the digest cycle.


Post a Comment for "After Using $sce.trustashtml, Ng-click Not Working"