0

I have stored HTML code in Database and I load it on the fly. I have used 'ng-bind-html' to load this HTML content in a view.

Now, I have some images in HTML code which I load on the fly, I want to show Loading Icon while Image is being loaded.

<div ng-bind-html="renderHTML(descData.description)"></div>

Controller to shoe rendered code.

scope.renderHTML = function(htmlCode)
{
     return $sce.trustAsHtml(htmlCode)
};

Any help will be appreciated.

Rajiv Pingale
  • 995
  • 9
  • 27

0 Answers0