I am using Angular Table which displays records from a MySQL DB. THe last column is a checkbox column. The problem is that when navigating between pages (pagination), the state of which the checkbox was loaded with persistent. How do I keep the state between the pages (if i checked/unchecked an item)?
<input type="checkbox" name="checkedin" ng-model='checkedin' ng-change='processForm(data)' ng-checked="data.Locked==1"/>
In the controller:
$scope.processForm = function(checkedindata) {
$http.post('ajax/setItems.php', { data : checkedindata })
};
Thanks :)
Aucun commentaire:
Enregistrer un commentaire