I want to automatically set the slugInput and versionInput inputs to different values for a table of things. How can I do this from a data structure?
Here's my view:
<div ng-controller="FileListController as flc">
<h1>Files Available</h1>
<table class="table table-striped">
<thead>
<tr>
<th>File Name</th>
<th>Slug</th>
<th>Version</th>
<th></th>
</tr>
</thead>
<tr ng-repeat="file in files">
<td>{{file}}</td>
<td><input type="text" class="form-control" ng-model="slugInput"></td>
<td><input type="text" class="form-control" ng-model="versionInput"></td>
<td><button type="button" ng-click="packageMod(file, slugInput, versionInput)" class="fa fa-check btn btn-success"></button></td>
</tr>
</table>
</div>
<input type="text" class="form-control" ng-model="slugInput" value="{angularvariable}">?