I have a angular js page, in which I get a javascript generated dynamically 
from backend. Example below

<script type="text/javascript" language="JavaScript" 
src="https://secure.echosign.com/public/widget?f=8GM4H46Y5W7I26";></script>

I have the following in my HTML

<div ng-bind-html="htmlString"></div>

And following is my js

var app = angular.module('myMod', []);

app.controller('MyCtrl', function($scope, $sce) {
  $scope.genJs = $sce.trustAsHtml("<h3>so Here it is</h3>" +
    "<div><script type=\"text/javascript\" language=\"JavaScript\" 
src=\"https://secure.echosign.com/public/widget?f=8GM4H46Y5W7I26\";></script></div>");
});

However I am unable to get the page rendered with the dynamic HTML/JS.

Plunkr link: http://plnkr.co/edit/vhOvLS0qrUxKmtNq4LUj?p=preview

Can anyone help.

Thanks,
Hari

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to