Hello,
I want to click a button from controller.
e.g
my html has a 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 ?.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
MayankPosted Nov 16, 2016, 7:14 AM
angular.element(document.querySelectorAll('#target')).triggerHandler('click');
Anand MorePosted Aug 16, 2016, 11:12 AM
Midhun TpPosted Aug 11, 2016, 10:08 AM