Reputation: 807
Lets suppose I want to print the following html:
<a href..?> </a>
and I have it inside some expression.
how can I print it so it will be clickable using {{x.something}}
in angular js ng-repeat
?
Upvotes: 0
Views: 1075
Reputation: 67296
You can do 1 of 2 things.
ng-bind-html
attribute. $sce
requires that you call $sce.trustAsHtml()
around the html content before binding to the UI.ng-bind-html
Upvotes: 2