Data Browser - Viewing Site  Sector 23 Code Bank Logged in as:  Guest  


Render raw HTML in Angular
To support things like styles, you have to run the data through $sce:


(ensure you reference $sce in your controller)

$scope.htmlData = $sce.trustAsHtml(data);

HTML Page:

Then use ng-bind-html to render the HTML:

<span ng-bind-html="htmlData "></span>

Created By: amos 10/30/2015 12:09:11 PM
Updated: 10/30/2015 12:09:19 PM