This provider is used to configure the behavior of somes directives and debug stuff.
You should always enable it on development and disable it on production.
Description:
It can helps to debug the DOM by adding some stuff in it like:
ng-binding
,ng-scope
andng-isolated-scope
CSS class$binding
data property containing an array of the binding expressionsngBind
andngBindHtml
attributesng-if
comments
Obviously, this option will slow down the application and it is useless in production.
So, disable it !
$compileProvider.debugInfoEnabled(false);
If you want to debug easily a production which have this option disable,
You can enter angular.reloadWithDebugInfo();
in your browser console to enable the debug.