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.
controller==> A
<button ng-click="click()"></button>
<script>
controller ==> B
$scope.click = function()
{
alert("hai");
}
<script>
My doubt explains above sample code.