Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Get the element this from the event function

$
0
0

@goldner wrote:

lets say i have this element :

<div ng-click="onClick()" >Hello</div>

attached to the folowing function :

$scope.onClick = function() {

}

is there a way to get the element dom object like the "this" in regular js event function without using the event.currentTarget?

thank you

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>