AngularJS: disable or remove ng-scope and ng-binding from generated HTML

Is there a way to remove the ng-scope and ng-binding attribute values ​​that are dynamically added to the HTML generated by AngularJS?

<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> 
+5
source share
1 answer

Yes,

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

Documentation here: https://docs.angularjs.org/guide/production

+14
source

Source: https://habr.com/ru/post/1209277/


All Articles