$scope.over_img = function(myEvent){ $scope.x = myEvent.clientX; $scope.y = myEvent.clientY; } ON html put this <div ng-mousemove="over_img($event)" > <p>Coordinates: {{x + ', ' + y}} <p> </div>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter