angularjs - is it possible in angular to set the debug log level at runtime? -


is possible switch $logprovider.debugenabled([flag]); @ runtime?

the current situation:

the angular client load settings server @ run phase. depends on settings set method $logprovider.debugenabled([flag]).

thanks in advance, stevo

the short answer is: no, not really.

once application hass been configured through .config() block, no further configuration can take place after application has bootstrapped.

this due way providers work; they're available @ configuration time. there might way force configuration, , manually re-inject new $log service of controllers, if there way that, i'm not sure how.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -