Gesture and pinch


#1

Hello,
i have the following code in my controller

controlers = angular.module(‘tanshi.controllers’)
.controller(‘EditorCtrl’, function($scope, $ionicModal, $compile, $ionicGesture, $stateParams) {

    var element = angular.element(document.querySelector('#obj-background'));
    var events = ['pinchin', 'tap']

    angular.forEach(events, function(obj){
        $ionicGesture.on(obj, function (event) {
            $scope.$apply(function () {
                $scope.lastEventCalled = obj;
            });
        }, element);
    });
});

but i am not able to catch the ‘pinchin’ or ‘pinchout’ event. Where is my error?
thanks in advance