title: $rootScope.$on not getting called after broadcast
body: <p>I have two controllers and want to notify one controller that some event has happened from the other controller. For this I am trying to use angular broadcast but have been unsuccessful. Please find below my code:</p>
  
  <p>firstController.js</p>
  
  <pre><code> $rootScope.$on('xyz',function(){
      alert('Called');
   });
  </code></pre>
  
  <p>secondController.js</p>
  
  <pre><code>  $rootScope.$broadcast('xyz');
  </code></pre>
  
  <p>Can someone please help in identifying what I am missing here?</p>