Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Not possible to bind to the ngMobile fast click event in directives #3218

Closed
cburgdorf opened this issue Jul 13, 2013 · 0 comments
Closed

Not possible to bind to the ngMobile fast click event in directives #3218

cburgdorf opened this issue Jul 13, 2013 · 0 comments

Comments

@cburgdorf
Copy link
Contributor

The ngMobile module provides a special ng-click directive that does a lot of work to figure out when exactly a ng-click handler should execute when running in a mobile environment.

However, for developers writing directives it's not possible to target this special click event as it is not raised on the element. While it is very common to write directives that bind click handler to elements, it's currently not possible to bind to this special click event. In your directives you are left with binding to the regular click event which unfortunately is the browsers default "slow" click implementation.

cburgdorf added a commit to cburgdorf/angular.js that referenced this issue Jul 13, 2013
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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant