One can toggle angulars debug infos by calling
$compileProvider.debugInfoEnabled(debugInfoState);
within the config method of an angular app.
Is there a way of checking if debug information is enabled via the console when an app is running in the browser?
The debugInfoEnabled
function is a setter/getter. It can be checked in a config block.
app.config(function ($compileProvider) {
var debugEnabled = $compileProvider.debugInfoEnabled();
console.log("debugInfoEnabled=", debugEnabled);
});
See the source code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With