首页 > angular里如何输出html?

angular里如何输出html?

情况是这样的,我用angular从服务器上查到一个对象,这个对象的某个属性是一串HTML。我试图用ng-bind-html把它输出到模板中,可是并不管用。
当然我也查到了用$sce这个东西,不过我总不能把对象列表里的所有对象都遍历一遍吧?
请问各位前辈是否有靠谱的方法可以教给小弟呢?
下面就是我的那一段读取数据的代码:
另外还有一段我写在模板里面的代码:
在此表示万分感谢。

//之前已经注入了$sce,就像这样:
//var myModule = angular.module("yohoModule",['ngRoute','ngSanitize']);
......
......
query.find({
        success:function(result){
            $scope.$apply(function(){
                $scope.videolist=JSON.parse(JSON.stringify(result));
            })
        },
        error:function(error){

        }
    });
<div class="videoitem" ng-repeat="video in videolist">
    <p class="videoitem-title">{{video.title}}</p>
    <p ng-bind-html="video.src"></p>
    <!--这里的video.src 什么都没有输出-->
</div>

each x in videolist:
$scope.videolist[x].video_src_html = $sce.trustAsHtml($scope.videolist[x].src);

<p ng-bind-html="video_src_html"></p>
【热门文章】
【热门文章】