In this video tutorial, we cover how to create event bindings other than the usual (click)
event binding in Ionic 2. We will cover how to use gestures like press
, swipe
, pan
, pinch
, and rotate
, as well as some more uncommon events like keydown
and keydown.space
.
Here’s the video:
Video Notes
- Event bindings like
(click)
can be set up on elements in the template to trigger functions in the TypeScript file - As well as
click
, gestures likepress
,swipe
,pan
,pinch
, androtate
can also be used - Normal DOM events like
load
andkeydown
can also be used for event bindings