1.1.4 and ngMobile

1,999 views
Skip to first unread message

Jeff Knight

unread,
Apr 24, 2013, 1:54:05 PM4/24/13
to ang...@googlegroups.com
I pulled down the latest unstable 1.1.4 release to start playing around with the new ngMobile module, but it doesn't appear to be part of the release. Looking through the source, there doesn't seem to be any reference to touch events. Is there something I'm missing?

Pawel Kozlowski

unread,
Apr 24, 2013, 1:55:18 PM4/24/13
to ang...@googlegroups.com
I guess you are missing this one:
http://code.angularjs.org/1.1.4/angular-mobile.js

Full distribution here: http://code.angularjs.org/1.1.4/

Cheers,
Pawel
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to angular+u...@googlegroups.com.
> To post to this group, send email to ang...@googlegroups.com.
> Visit this group at http://groups.google.com/group/angular?hl=en-US.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
AngularJS book:
http://www.packtpub.com/angularjs-web-application-development/book
Looking for bootstrap-based widget library for AngularJS?
http://angular-ui.github.com/bootstrap/

Jeff Knight

unread,
Apr 24, 2013, 2:30:51 PM4/24/13
to ang...@googlegroups.com
That's what I was missing, thanks for the heads up.

Jeff

Erez Lirov

unread,
Apr 24, 2013, 6:06:20 PM4/24/13
to ang...@googlegroups.com, Robert Cunius
It looks like there may be a conflict with JQuery.  
http://plnkr.co/edit/fnJCUMn2fMZy9cIunfFj

If we leave the jquery include commented out, the ng-click responds quickly on my ipad.
If we add the jquery include back in, then the click seems to revert back to the slow click behavior.

刘泉

unread,
Apr 25, 2013, 3:36:59 AM4/25/13
to ang...@googlegroups.com
how to use ngmobile? need to add ng-tap?

Erez Lirov

unread,
May 2, 2013, 3:56:49 PM5/2/13
to ang...@googlegroups.com, Robert Cunius
Is anyone else running into this, or is this just a problem on my ipad? :)

Jeff Knight

unread,
May 3, 2013, 6:14:22 PM5/3/13
to ang...@googlegroups.com, Robert Cunius
I'm not running into that issue, but I am running into another issue. It seems that the FastClick code is not preventing ghost clicks. I'm having issues where when I tap on an element, if that tap triggers a route change and the new view has a form on it, then the form element at around the same position as the element I tapped receives focus. This is a consistent behavior. 

Erez Lirov

unread,
May 3, 2013, 6:18:28 PM5/3/13
to ang...@googlegroups.com, Robert Cunius

I'm getting the same effect as well.  But also the conflict with j query.  Did you try the plnkr on an ipad?

You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/NpgXfFh7nA0/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.

Jeff Knight

unread,
May 3, 2013, 6:47:14 PM5/3/13
to ang...@googlegroups.com, Robert Cunius
I can verify that uncommenting out the jQuery include seems to break the FastClick behavior. 

levyuk

unread,
May 8, 2013, 1:49:44 PM5/8/13
to ang...@googlegroups.com, Robert Cunius
Is there any documentation on using ngMobile or is it just what's in the js file?

Jeff Knight

unread,
May 8, 2013, 8:34:48 PM5/8/13
to ang...@googlegroups.com, Robert Cunius

Jeff Knight

unread,
May 8, 2013, 8:36:09 PM5/8/13
to ang...@googlegroups.com, Robert Cunius
Following up on this, adding an event.preventDefault on the touchend event fixes the issue I am experiencing in angular-mobile.js

levyuk

unread,
May 9, 2013, 3:06:47 AM5/9/13
to ang...@googlegroups.com, Robert Cunius
Do you know if when I use ng-tap it also fires ng-click? Or do I need to specify ng-tap and ng-click?

Tyler Renelle

unread,
Aug 19, 2013, 11:27:27 AM8/19/13
to ang...@googlegroups.com, Robert Cunius
Same problem as everyone else. Angular 1.1.5. Tried 1.2rc1 as well (which replaces ngMobile with ngTouch, and has a lot of ghost-click prevention code) - but no cigar. I'm going to try removing jQuery later, as seems to be the common workaround. 

@levyuk - note ngTap was removed, and wrapped up back into ngClick.

Levi Morales

unread,
Aug 21, 2013, 1:58:03 PM8/21/13
to ang...@googlegroups.com, Robert Cunius
Integrating this commit fixed the issue for me. Seems to be an issue with how jQuery wraps events. This checks to see if the original event is present and uses that instead.

Reply all
Reply to author
Forward
0 new messages