Currently, I have this table with a checkbox at every row in AngularJS;
<table class="table table-hover data-table sort display">
<thead>
<tr>
<th>Name</th>
<th>Location</th>
<th>Checkbox Alert</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in filteredList | orderBy:columnToOrder:reverse">
<td>{{item.name}}</td>
<td>{{item.location}}</td>
<td><input type="checkbox" ng-model="selected" ng-change="display(selected, item)"></td>
</tr>
</tbody>
</table>
I have a boolean variable {{item.checkbox_status}} which reflects whether the checkbox should be checked or unchecked. How should I place this variable into the table html code above to get the checkbox to reflect the checking status? Or do I need to work on the controller instead?