title: $scope.$on Called several times
body: <p>I am using </p>
  
  <p><code>$rootScope.$broadcast("closeviewMultiUserMainDetail");</code></p>
  
  <p>and using in by below</p>
  
  <pre><code>$rootScope.$on("closeviewMultiUserMainDetail", function (event) {
              //other code
          });
  </code></pre>
  
  <p>sometimes ‍‍<code>$rootScope.$on</code> Called several times.</p>
  
  <p>How can this be prevented?</p>