Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从$scope angularJS中删除$sce.trustAsHtml对象_Html_Angularjs_Controller - Fatal编程技术网

从$scope angularJS中删除$sce.trustAsHtml对象

从$scope angularJS中删除$sce.trustAsHtml对象,html,angularjs,controller,Html,Angularjs,Controller,我有这个密码 var VisualEditor=angular.moduleVisualEditor[ngSanitize]; 控制器'VisualEditorController',函数$scope,$sce{ $scope.Pages=[ $sce.trustAsHtml'x在此处编写文本, $sce.trustAsHtml'x在此处编写文本' ]; $scope.DeletePage=函数索引{ $scope.Pages.index,1; };这已经在这里的SO帖子中得到了询问和回答:G

我有这个密码

var VisualEditor=angular.moduleVisualEditor[ngSanitize]; 控制器'VisualEditorController',函数$scope,$sce{ $scope.Pages=[ $sce.trustAsHtml'x

在此处编写文本

, $sce.trustAsHtml'x

在此处编写文本

' ]; $scope.DeletePage=函数索引{ $scope.Pages.index,1;
};这已经在这里的SO帖子中得到了询问和回答:GL!@Shehryar我想在ng上删除单击x,但当我单击它时,它不会删除元素。EMM,看看这个提琴:拼接部分使用JSON数据。你可能想检查一下你使用$sce的方式。你在控制台中看到任何错误吗?你看到你看到的渲染片段了吗ve在$sce.trustAsHtml//代码片段中?此外,请查看$sce.trustAsHtml的这篇SO帖子usage@Shehryar我不想使用{{person.name}}来显示HTML标记,除非我想在$scope中保存EMM并在页面上显示它,这可以通过在$scope中保存$sce.trustAsHtml'EMM'来完成