title: angularJS $on event handler trigger order
body: <p>I was wondering two things, in the context of angularJS event handling. </p>
  
  <ol>
  <li>How is defined the order in which handlers listening to the same event are triggered?</li>
  <li>Is it a sign of a bad design if you start wondering about this?</li>
  </ol>
  
  <p>After reading documentation on angular <a href="http://docs.angularjs.org/api/ng.%24rootScope.Scope">$on, $broadcast and $emit</a> as well as native <a href="http://www.w3.org/TR/DOM-Level-3-Events/#event-flow">DOM event flow</a> I think I understand in which order event handlers will be trigger in different scopes. The problem is when several handlers listen in the same scope ($rootScope for example) from various places (Controllers vs Services for example).</p>
  
  <p>To illustrate the problem I have put together a jsfiddle with one controller and two services, all communicating through $rootScope <a href="http://jsfiddle.net/Z84tX/">http://jsfiddle.net/Z84tX/</a></p>
  
  <p><code>Thanks</code></p>