Angualr ng-bind-html样式不加载解决办法

myApp.filter('to_trusted', ['$sce', function ($sce) {
    return function (text) {
        return $sce.trustAsHtml(text);
    };
}]);
 
<p class="cause-ing" ng-bind-html="nodata.title | to_trusted"></p>
 
 

posted on 2018-07-04 15:25  124331  阅读(287)  评论(0编辑  收藏  举报

导航