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

feat(ngMobile): trigger ngClick event on element #3219

Closed
wants to merge 1 commit into from

Conversation

cburgdorf
Copy link
Contributor

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 #3218

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
@cburgdorf
Copy link
Contributor Author

The PR is missing tests yet. However, I first wanted to get a review if it's going to get merged, if tests follow.

@cburgdorf
Copy link
Contributor Author

However jquery-mobile also introduces a new name for the event (they call it vclick) It's quite interesting to read about the challenges involved: http://api.jquerymobile.com/vclick/

@bshepherdson
Copy link
Contributor

This LGTM, since we have an expressed need for it in #3218.

Definitely need some tests, though. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not possible to bind to the ngMobile fast click event in directives
2 participants