My table is populated using ng-repeat with data sourced from JSON.
The table includes columns for name, phone, and time.
When I click on a name, a bootstrap modal appears. However, I need the selected name to be displayed within the bootstrap modal itself.
<tbody>
<tr ng-repeat='row in rows'>
<td data-toggle="modal" data-target="#myModal" ng-modal="" > <a>{{row.name}}</a></td>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">{{row.name}} Details</h4>
</div>
</div>
</div>
<td>{{ row.phone}}</td>
<td>{{row.time}} </td>
</tr>
</tbody>
http://plnkr.co/edit/JX1hxzknZ0YIJKnzSGaf?p=preview
I am seeking assistance in displaying the clicked name in the modal header.
Your help would be greatly appreciated. Thank you!