AngularJS: How to listen to DOM Events? this answer provided is using ng-click directive. My scenarios is that I want to avoid this approach.
This is my sample code
Here is my attempt.
$('#test').on({
click: function (e) {
console.log("test...");
}
});
$('#login').on({
click: function (e) {
console.log("test...");
}
});
I need a listener to be implemented which will listen to any click even of the given dom element. any help on this is appreciated.