i am new to AngularJS so please forgive me this dump question.
How do I listen to 'dom' events like 'click' or 'mousemove'?
This is what I got (No errors, but also no result in the console)
// Code is based on the orginal angularjs-seed.
angular.module('myApp.controllers', []).
controller('MyCtrl1', ['$scope', function($scope) {
$scope.$on('dragover', function() {
console.log('dragover');
});
$scope.$on('click', function() {
console.log('click');
});
}])
.controller('MyCtrl2', [function() {
}]);