I was wondering what does the ! actually mean in this method
$scope.toggleSelected = function () {
$scope.selected = !$scope.selected;
};
I understand it's allowing me to set a selected item and it won't work without it but what exactly is the ! for?