@zhouhao wrote:
It seems the raw html with angular directive does not work as I expected. The directive was removed. Here is the example of my raw html (inside my body property of article object):
<img src="http://files.parsetfss.com/f8b106f8-aa9a-4984-9054-dd5145a16ac2/tfss-9bb2cdad-d985-491e-843b-1f5286c5a21f-eclipse_update_120.jpg" class="full-image" ng-click="showImages(0)">
But when I rendered it in my page:
<p ng-bind-html='article.body'>
The ng-click directive will be removed, like this:
<img src="http://files.parsetfss.com/f8b106f8-aa9a-4984-9054-dd5145a16ac2/tfss-9bb2cdad-d985-491e-843b-1f5286c5a21f-eclipse_update_120.jpg" class="full-image">
What's wrong with it? What should I do? Thanks
Posts: 1
Participants: 1