Answer the question
In order to leave comments, you need to log in
How to trigger click with AngularJS?
How to trigger click on a.clear-all.ng-scope using AngularJS?
Answer the question
In order to leave comments, you need to log in
function clickOnUpload() {
$timeout(function() {
angular.element('#myselector').triggerHandler('click');
});
};
// Using Angular Extend
angular.extend($scope, {
clickOnUpload: clickOnUpload
});
// OR Using scope directly
$scope.clickOnUpload = clickOnUpload;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question