Is it possible to create an HTML fragment in an AngularJS controller and have this HTML shown in the view?
This comes from a requirement to turn an
here is the solution make a filter like this
.filter('trusted', function($sce) { return function(ss) { return $sce.trustAsHtml(ss) }; } )
and apply this as a filter to the ng-bind-html like
and thank to Ruben Decrop 0 讨论(0) 查看其它18个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
and thank to Ruben Decrop