I can attach click event in angular like this
<span (click)="showInfo()" class="info-span"><span>
But I have 20 spans like this, so is there any centralized way to attach the click event with the class name info-span
in angular like we can do with jquery like this?
$('.info-span').click(function(){});
Or I have to repeat this (click)="showInfo()"
in all the spans?