The marked answer is one of the ways to enable the pinch gesture. A recent article was posted to describe the other methods as well. It is too much to paste in here. But to get a gist of the idea;
- Enable it per page context using the
Gestureclass (the marked solution for this question) - Enable it using the
overridesproperty within an extendedHammerGestureConfig - Enable it by overriding the
buildHammer(element: HTMLElement) { }method within an extendedHammerGestureConfig - Writing a small “pinch directive” due to the lack of consistency that above implementation provides (most preferable solution)
Full article / source: https://www.ionicrun.com/using-the-pinch-gesture-in-ionic-2/