1.

How do you explain events in Ionic?

Answer»

Ionic Events is a publish-subscribe event system that may be used to send messages across multiple components and pages. To put it another way, it's a framework for TRANSMITTING and responding to app-level events across your entire app. Interactivity with users can be added VIA a variety of Ionic events. All of the Ionic events are EXPLAINED in the table below.

Event NameEvent Detail
on-holdIt is called whenever the duration of the touch is greater than 500ms.
on-tapIt is called whenever the duration of the touch is less than 250ms.
on-double-tapIt is called whenever there is double-tap touch.
on-touchIt is called instantly when the touch begins.
on-releaseIt is called when the touch ends.
on-dragIt is called when touch is MOVED without releasing around the page in any direction.
on-drag-upIt is called when an element is DRAGGED up.
on-drag-rightIt is called when an element is dragged to the right.
on-drag-leftIt is called when an element is dragged to the left.
on-drag-downIt is called when an element is dragged down.
on-swipeIt is called when there is any dragging that has a high velocity moving in any direction.
on-swipe-upIt is called when there is any dragging that has a high velocity moving up.
on-swipe-rightIt is called when there is any dragging that has a high velocity moving to the right.
on-swipe-leftIt is called when there is any dragging that has a high velocity moving to the left.
on-swipe-downIt is called when there is any dragging that has a high velocity moving down.


Discussion

No Comment Found