Hello,
I want to click a button from controller.
e.g
my html has a button:-
<button class="item" ng-click="selectTabWithIndex(1)">Select tab 2!</button>
like this.
I want to hit button from controller.
in Jquery we can do this. $( "#target" ).click();
but how would be done by AngularJs ?.