I have a checklist of items
<input type="checkbox" ng-model="servicesModel" value={{item.name}} id={{item.name}} ng-click="toggleSelection(item.name)"/>
and I need to unselect the currently selected checkbox
$scope.toggleSelection = function toggleSelection(id) {
window.alert("You cannot select this!");
//unselect the selected checkbox
}
Everything is functioning correctly, but I am unsure how to deselect the currently selected item.