title: How can I unregister a broadcast event to rootscope in AngularJS?
body: <p>I have the following:</p>
  
  <pre><code>angular.module('test')
      .controller('QuestionsStatusController1',
      ['$rootScope', '$scope', '$resource', '$state',
      function ($rootScope, $scope, $resource, $state) {
  
          $scope.action2 = function() {
              $rootScope.$broadcast('action2@QuestionStatusController1');
          }
  
      }]);
  
  angular.module('test')
     .controller('QuestionsStatusController2',
     ['$rootScope', '$scope', '$resource', '$state',
     function ($rootScope, $scope, $resource, $state) {
  
      $rootScope.$on('action2@QuestionStatusController1', function {
           //write your listener here
      })
  
     }]);
  </code></pre>
  
  <p>It's my understanding that I need to unregister the listening event. Can someone tell me how I could code / do this?</p>