These classes that are added to your DOM elements are directives (a directive can be elements, attributes, classes, or comments).
When angular compiles the DOM and falls into the directive, it then passes logic through this directive to modify, manage, update, or perform any task that the angular directive requests.
For example, it will take your ng-repeat directives and build some DOM elements accordingly.
By removing these directives (classes such as ng-scope and ng-isolated-scope), angular will not stop at these places and will not execute logic. Because of this, an increase in productivity is achieved.
Jacob carter
source share