title: AngularJs/ .provider / how to get the rootScope to make a broadcast?
body: <p>Now my task is to rewrite $exceptionHandler provider so that it will output modal dialog with message and stop default event.</p>
  
  <p>What I do:</p>
  
  <p>in project init I use method .provider:</p>
  
  <pre><code>.provider('$exceptionHandler', function(){
  
  //and here I would like to have rootScope to make event broadcast
  
  })
  </code></pre>
  
  <p>standart inject method does not work.</p>
  
  <p><strong>UPD</strong>: sandbox - <a href="http://jsfiddle.net/STEVER/PYpdM/" rel="noreferrer">http://jsfiddle.net/STEVER/PYpdM/</a></p>