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

javascript - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -