0 votes
in Angular by

What is the correct use of Angular's event binding syntax on the a tag element that binds to a function call of a function named onDelete?

1. <a [click]='onDelete()' class="delete">

2. <a (click)='onDelete{}' class='delete'>

3. <a (click)="onDelete()" class="delete">

1 Answer

0 votes
by
Correct answer is:-

3. <a (click)="onDelete()" class="delete">
...