How to trigger emulate ngClick click from jQuery
3 answers
It seems strange to me that it doesnβt work, I get his work with both
angular.element('a[ng-click="someAction()"]') and
$('a[ng-click="someAction()"]') as selectors and both click() and trigger('click') to trigger the clicker.
See http://plnkr.co/edit/6VMavwVImXAonSp8xZrI?p=preview (See console)
+4