angularjs - Angular.js - Include markup in an expression -
i have following piece of code -
<div class="appreviewquestions"> {{aboutyou.radioselectsq}} </div>
the expression {{aboutyou.radioselectsq}}
represented string application updated , same expression represents string + markup(html).
currently piece of code shows markup string. want angular should read markup , not display string. how achieve this?
ng-bind-html
should trick!
<div class="appreviewquestions"> <p ng-bind-html="aboutyou.radioselectsq"></p> </div>
read more @ angular docs
Comments
Post a Comment