I am working with a JavaScript function that requires a parameter. This parameter needs to be extracted from the HTML in the following format:
<tr ng-repeat="restaurant in accounts.selectedRestaurants">
<td>{{restaurant}}</td>
<td>{{accounts.findAllAccountsByRestaurant(restaurant)}}</td>
</tr>
The function I am using is `accounts.findAllAccountsByRestaurant()` and the parameter it needs is `restaurant`, which is obtained through the `ng-repeat`. How can I successfully pass this parameter to the function? Any help would be greatly appreciated.