What is the difference between ng-click and tap?


#1

Can someone tell me how ng-click is different from tap? How is it implemented in Ionic?


#2

Ng-click is an angular method that lets you bind to a function in your scope. The tap gesture is a way for you to create custom events based on that particular gesture. Most cases, ng-click fits peoples needs


#3

Well not in my case at least. I need onmousedown and there is no support for this event in hammer.js and hence no support in Ionic also.


#4

Well you could use the standard mousedown event, but we also have a hold even that you could use too.