# Any way to get touch co-ordinates in Ionic?

**URL:** <https://forum.ionicframework.com/t/any-way-to-get-touch-co-ordinates-in-ionic/62507>\
**Category:** ionic-v3\
**Created:** [September 4, 2016, 4:54am UTC](https://forum.ionicframework.com/t/any-way-to-get-touch-co-ordinates-in-ionic/62507 "2016-09-04T04:54:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![initish](https://avatars.discourse-cdn.com/v4/letter/i/9f8e36/32.png) [@initish](https://forum.ionicframework.com/u/initish)\
**Post date:** [September 4, 2016, 4:54am UTC](https://forum.ionicframework.com/t/any-way-to-get-touch-co-ordinates-in-ionic/62507/1 "2016-09-04T04:54:10Z")

</div>

This is my markup:

```
<canvas id="canvas" on-tap="onTap($event)"></canvas>

```

and this is my angularJS code:

```
angular.module('ionicApp', ['ionic'])
.controller("wallControl", ['$scope', '$interval', function($scope, $interval) {
    $scope.onTap = function(event) {
    $(".score").text(ionic.tap.pointerCoord(event).x);
};

```

However, it always returns 0. Am I doing something wrong?

Thanks.
