I try to bind arrow keydown event to the document, but it doesn't work in angular. code:
function CubeCtrl($scope, $locale) {
$scope.click = function(){
alert("click")
}
$scope.keydown = function(){
alert("keydown")
}
}
html:
<body ng-app ng-controller="CubeCtrl" ng-click="click()" ng-keydown="keydown()">
and here is jsfiddle