How to check if debugging information is included in angular?

You can switch angle deviation information by calling

$compileProvider.debugInfoEnabled(debugInfoState); 

as part of the angular application configuration method.

Is there a way to check if debugging information is enabled through the console when the application is running in a browser?

+5
source share
1 answer

The debugInfoEnabled function is setter / getter. It can be checked in the configuration block.

 app.config(function ($compileProvider) { var debugEnabled = $compileProvider.debugInfoEnabled(); console.log("debugInfoEnabled=", debugEnabled); }); 

See the source code .

+4
source

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


All Articles