Omprakash Amarwal

Omprakash Amarwal

  • NA
  • 47
  • 3.8k

How to Click a button from Controller side ?

Aug 11 2016 7:41 AM
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 ?. 
 
 

Answers (3)