I would like to know how to retrieve the value selected in a checkbox. I have here this code that is in my controller and that displays my list well in the popup, but it does not retrieve the selected item.
$scope.clik = function() {
AppService.list($scope.form)
.then(function(response) {
var content = '';
for(i in response){
content = content+'<ion-checkbox>'+response[i].name+'</ion-checkbox>';
}
var alertPopup = $ionicPopup.alert({
title: 'List',
template: $scope.form = content,
});
});
}
Aucun commentaire:
Enregistrer un commentaire