Recently delving into angular js and hoping to achieve this. Here is a snippet of my code:
<tr data-ng-repeat="element in awesomeThings">
<td ng-click="getServiceDetails()">
<a href="#">
{{element}}
</a>
</td>
</tr>
Within the ng-repeat
, I am looking to attach a ng-click
to the html dom elements like so:
<td ng-click="getServiceDetails()">
The function getServiceDetails()
requires one parameter, which can be found in element['id']
. How do I go about passing this value to the getServiceDetails()
function?