Click coordinates
Hello friends,
please how is possible to access coordinate values pageX and pageY (position of a click) which are shown in Console log?

Thanks for the answers.
Tomas
Hello friends,
please how is possible to access coordinate values pageX and pageY (position of a click) which are shown in Console log?

Thanks for the answers.
Tomas
You can get them if you add an event listener:
window.addEventListener('click', $scope.clickEventFunktion);
In the function you can get the coordiates of the click event:
$scope.clickEventFunktion=function(){
console.log(window.event.pageX);
console.log(window.event.pageY);
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.