Google News
logo
Ionic - Interview Questions
How do you explain events in Ionic?
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 Name Event Detail
on-hold It is called whenever the duration of the touch is greater than 500ms.
on-tap It is called whenever the duration of the touch is less than 250ms.
on-double-tap It is called whenever there is double-tap touch.
on-touch It is called instantly when the touch begins.
on-release It is called when the touch ends.
on-drag It is called when touch is moved without releasing around the page in any direction.
on-drag-up It is called when an element is dragged up.
on-drag-right It is called when an element is dragged to the right.
on-drag-left It is called when an element is dragged to the left.
on-drag-down It is called when an element is dragged down.
on-swipe It is called when there is any dragging that has a high velocity moving in any direction.
on-swipe-up It is called when there is any dragging that has a high velocity moving up.
on-swipe-right It is called when there is any dragging that has a high velocity moving to the right.
on-swipe-left It is called when there is any dragging that has a high velocity moving to the left.
on-swipe-down It is called when there is any dragging that has a high velocity moving down.
Advertisement