Is there angular style to listen to clicks on elements without using ng-click.
In JQuery we can do it this:
$("div").on("click",function);
$("div").click(function);
This helps in registering click dynamically.
What is the Angular way to do this?
Is there angular style to listen to clicks on elements without using ng-click.
In JQuery we can do it this:
$("div").on("click",function);
$("div").click(function);
This helps in registering click dynamically.
What is the Angular way to do this?
You can use jqLite:
angular.element(e).on('click', function($event) {...});