I have the following HTML Code. This is a table that fetches a list of items from costList and displays them in different rows. I want the item value to be displayed on the row click. How do I implement it in Angular. Thank You in advance.
<table>
<tr ng-click = "displayItem()" ng-repeat = "item in costList">
<td>{{item}}</td>
</tr>
</table>