Access Element That Triggered Event In AngularJS 1.x

Posted By Weston Ganger

If your using angular and you want to access the DOM element that triggered the event but do not want to query the DOM to do so, then you can access it from your method like so.

.controller("MyCtrl", function($scope){
  $scope.doWork = function($event){
    var element = angular.element($;

Related External Links:

Article Topic:Software Development - Javascript

Date:November 15, 2016