Pinch gesture activation :
import { Component, ViewChild } from '@angular/core';
import { Gesture } from 'ionic-angular';
...
export class Toto {
...
private gesture: Gesture;
@ViewChild('image') element;
...
ionViewDidLoad() {
//create gesture obj w/ ref to DOM element
this.gesture = new Gesture(this.element.nativeElement);
//listen for the gesture
this.gesture.listen();
//turn on listening for pinch or rotate events
this.gesture.on('pinch', e => this.pinchEvent(e));
}
private pinchEvent(event) {
console.log(event);
}
...
}
image “selector” needs to be added into your template :
<div #image></div>
Relative issue :