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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -