Let say I have the following in angular:
<div class="dwiws" id="som" (click)="someFunction()">
some content
</div>
Then in .ts
, I have the following:
someFunction(){
//Want to detect the class and id of the div i clicked.
};
I want to detect the id and class of the div that the click function lies.
How do I do it?