I don't want to user a variable in the component, only user reference variables in HTML. Here is the code:
<fieldset id="group1">
<input type="radio" value="value1" name="group1" [checked]="true" #list>List
<input type="radio" value="value2" name="group1" #map>Map
</fieldset>
{{list.checked}}
When I launched the code, list.checked = return true. When I click on the second radio button, list.checked is supposed to now return false but it's not the case.
How to make it work?
Thanks