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>
相關文章
相關標籤/搜索