I am trying to create a radio button input in my Angular2 app using ngModel and value. I want three options: true, false, and null, but I can't figure out how to set one of the inputs to a value of null. Essentially if nothing has been selected (ie the ngModel value is null) I want that null radio button to be selected. Is there a way to do this easily in the HTML? Thanks.
Asked
Active
Viewed 1,965 times