I want Angular to execute the function "onEditClick" when the user click on an specif option, here's my code:
<select class="form-control">
<option *ngFor="let skill of skills" (click)="onEditClick(skill)" >{{ skill.name }}</option>
</select>
When I click on any option, nothing happens.
I tried doing it with a table instead of select and it worked:
<tbody *ngFor="let skill of skills">
<td> {{ skill.name }} </td>
<td><button class="btn btn-outline-success" height="20" width="20" (click)="onEditClick(skill)">Edit</button></td>
</tbody>
How do I do it with the Select one?