mercredi 13 juin 2018

$event.target.value won't work on click event - Angular 5

I'm trying to pass value of the clicked element into a function to change data dynamically on the page . My code looks somewhat like this :

<li value= (click)="someFunction($event.target.value,someargument)">




Aucun commentaire:

Enregistrer un commentaire