I couldn\'t find an elegant way for setting null
values with a using AngularJS.
HTML :
the only way you can achieve that is by using a onchange event and restoring the object as initialized any other attempt to set the selected to null will remove the property from the object.
$scope.setValue=function(val){
if($scope.obj.selected=="null")
$scope.obj ={"selected":null};
}
this is a bad idea, you should always have values in your model instead of playing around with null and undefined