Get Coordinates
Thu Jan 18 2024 22:23:10 GMT+0000 (Coordinated Universal Time)
Saved by
@Yous
$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>
content_copyCOPY
Comments