I want to (by default) have debug statements hidden
$logProvider.debugEnabled(false);
BUT I want the developers to access the debug statements via some sort of path param (or something like it). We have multiple "Dev" servers and want to quickly skim through the debug statements.
What i wanted to do was given a url such as:
myapp.com/mypage.html?debug=true
enable the $locationProvider to debug.
I wanted to do something like:
$urlParams = $location.search();
if($urlParams.debug) {
$logProvider.debugEnabled(true);
}
in the config...but i cannot use the $location injection...is there anyway to do some sort of logic in the config section...or better yet, is there way to config and app on the fly?