My current task involves rewriting the $exceptionHandler provider to display a modal dialog with a message and prevent the default event.
Here is what I'm trying to do:
In the project initialization, I am using the .provider method like this:
.provider('$exceptionHandler', function(){
//and here I want access to rootScope for event broadcasting
})
The standard injection method is not effective.
UPDATE: Check out the sandbox at http://jsfiddle.net/STEVER/PYpdM/