Hi every one, I’m trying to have some value when I pinch on my Ionic app
I’ve a simple controller:
.controller('HomeCtrl',function($scope,$ionicGesture) {
//PINCH
var element = angular.element(document.querySelector('#eventCiao'));
$ionicGesture.on('pinch', function(e)
{
$scope.zoom = e.gesture.scale;
console.log(e.gesture.scale)
},element);
})
And in my template I’ve:
<ion-view hide-nav-bar="true">
<ion-content scroll="false">
<div id="eventCiao">{{zoom}}</div>
</ion-content>
</ion-view>
the console print the pinch’s value but in template it is not displayed.
have you any ideas? thansk a lot