That is my question, what are the pros and cons ?
In my app I am using interpolation but I get errors like this
{{::sport.name}}
-> NHL Futures & Props
and if I use ng-bind-html
ng-bind-html="sport.name"
-> NHL Futures & Props
in this case ng-bind-html
is doing what I want. But, is there something wrong with it ?
Is there one better than the other ?
so tell me, I am open to suggestions.
ng-bind-html
sanitize the html using$sce
whileng-bind
don't sanitize html..Both are used for different purpose..so we can't compare them on basis of their performance – Ideang-bind-html
and why you started using it in the first place.text
vshtml
– Unharness