Javascript ng绑定html不处理输入

Javascript ng绑定html不处理输入,javascript,html,angularjs,Javascript,Html,Angularjs,我想用$scope.value=”“ 在DOM中没有插入任何内容,但是如果$scope.value=“Hello Guys”一切正常 ng bind html是否存在限制/缺陷?有解决办法吗 我使用的是angularJS的1.2.4版本 谢谢你的帮助,这对我的发展是个大问题 Christophe你不能用指令代替它吗?这样我想你就摆脱了你的问题 一个小例子: angular.module('myApp').directive('myDirective', function(){ retur

我想用
$scope.value=”“

在DOM中没有插入任何内容,但是如果
$scope.value=“Hello Guys”
一切正常

ng bind html是否存在限制/缺陷?有解决办法吗

我使用的是angularJS的1.2.4版本

谢谢你的帮助,这对我的发展是个大问题


Christophe你不能用指令代替它吗?这样我想你就摆脱了你的问题

一个小例子:

angular.module('myApp').directive('myDirective', function(){
  return {
    restrict: 'E',
    replace: true,
    // you can set 'transclude: true' instead of the following line to create a new scope but inheriting from the parent
    scope: false, // this will make the directive have the same scope as the parent
    templateUrl: 'my-html-template.html'// you can load the template like this
    // You can also use 'template' and include the html code here
  }
});

你的问题是什么?你能用一个空的DOM元素代替空文本吗?你是说bg bdin html还是ng bind html?