AngularJS:禁用或删除生成的HTML中的ng-scope和ng-binding

时间:2014-12-16 20:38:35

标签: angularjs

有没有办法删除在AngularJS生成的HTML中动态添加的ng-scope和ng-binding属性值?

<tr ng-repeat="student in students" ng-class="isGrey[$index]" ng-click="toggleClass($index)" class="ng-scope">
     <td class="ng-binding">1</td>
     <td class="ng-binding">Mahesh</td>
     <td class="ng-binding">Sapkal</td>
</tr>

1 个答案:

答案 0 :(得分:16)

是,

myApp.config(['$compileProvider', function ($compileProvider) {
    $compileProvider.debugInfoEnabled(false);
}]);

此处的文档:https://docs.angularjs.org/guide/production