title: How to fire a button's click event from another controller angular
body: <p>I am new to angular. Am having two controller. One controller have a button. That button's click event wrote in another controller's script. How to make fire the click event. Please help. Thank in advance.</p>
  
  <pre><code>controller==&gt; A
  &lt;button ng-click="click()"&gt;&lt;/button&gt;
  
  
  
  &lt;script&gt;
  controller ==&gt; B
  $scope.click = function()
  {
  alert("hai");
  }
  &lt;script&gt;
  </code></pre>
  
  <p>My doubt explains above sample code.</p>