Skip to content

Commit 6786f03

Browse files
committed
feat(ngMobile): trigger ngClick event on element
With this patch, people can bind to the 'ngClick' event in directives so that they can run code on the non native mobile tap/click event which is controlled by the click directive from the ngMobile module. Fixes angular#3218
1 parent 861e0c7 commit 6786f03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ngMobile/directive/ngClick.js

+1
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ ngMobile.directive('ngClick', ['$parse', '$timeout', '$rootElement',
234234

235235
scope.$apply(function() {
236236
// TODO(braden): This is sending the touchend, not a tap or click. Is that kosher?
237+
angular.element(tapElement).triggerHandler('ngClick', event);
237238
clickHandler(scope, {$event: event});
238239
});
239240
}

0 commit comments

Comments
 (0)