会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
walker's blog
博客园
首页
新随笔
联系
订阅
管理
2014年2月20日
ng-bind-html-unsafe的替代
摘要: angular 1.2以后(或更早?)移除了ng-bind-html-unsafe,那么我要用这个directive来绑定html代码怎么办?随便一测试,它是不支持把html直接传给它的: //html //js $scope.m="text"; //error: [$sce:unsafe] Attempting to use an unsafe value in ...
阅读全文
posted @ 2014-02-20 00:30 $walker
阅读(3043)
评论(0)
推荐(0)
编辑
公告