I am currently trying to add links in my view. I do have links which basically contains html tags as strings. I tried:
<p data-ng-repeat='i in links' >{$ i.link $}</p>
which basically just deploy in my view : mylink
So I did try:
<p data-ng-repeat='i in links' ><span data-ng-bind-html="i.link"></span></p>
It doesn't work though, any idea how could I achieve this ?
Thanks.
ng-hrefand have your string contain simply the URLng-bind-htmlshould work!ng-bind-htmlordata-ng-bind-html, make sure you have addedngSanitizein ur module dependencyangular.module('app', ['ngSanitize'])docs.angularjs.org/api/ngSanitize/filter/linky