accessing the target of a click in angularjs

Developer from somewhere

Here’s how to access the target of a click event:

<a ng-click="doSomething($event)">Click me</a>

And in your method, you can access the target via $event.target