gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 13:16:08 25 4
gpt4 key购买 nike

有什么方法可以删除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>

最佳答案

是的,

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

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

关于angularjs - AngularJS:禁用或删除生成的HTML中的ng-scope和ng-binding,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27513515/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com