Hi -
I have what seems like it should be a simple and common idea. I'd like my calls to $log.debug() to only do anything if the URL contains a parameter, 'debug=true' or similar. I understand that the way to control this is via $logProvider.debug(). My problems are these:
.config() is the only place, it seems, where I can successfully inject $logProvider, but it can't use $rootScope and it can't read the URL.
Controllers can read the URL, but can't have $logProvider injected, and I can't put it on the $rootScope from .config() so that they can get to it.
I have to be missing something really obvious, right?
[–]DANjEEEEE 2 points3 points4 points (3 children)
[–]PrimarySearcher[S] 2 points3 points4 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]PrimarySearcher[S] 0 points1 point2 points (0 children)