I have a Modal that has a table on the left with all the Customers in a table. On the right side are input fields. I need a user to be able to click on a Customer and populate the inputs fields with the Customer property values.
I made a Plunkr
My Code
<table class=" table table-bordred table-striped table-hover">
<tr><th style="font-weight: bold;">Customers</th></tr>
<tbody>
<tr ng-repeat="job in jobArray" class="pointer">
<td>{{job.Customers[0].CustomerName}}</td>
</tr>
</tbody>
</table>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">C. Name</span>
<input style="width:400px" ng-model="CustomerName" type="text" />
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">C. Address</span>
<input style="width:390px" ng-model="CustomerAddress" type="text">
</div>