Попробуйте, используя (change)
и [checked]
:
Я думаю, что (click)
на первом получал плохие результаты.
<div>
<input
type="radio"
name="rdobuy"
[checked]="!showSelection"
value="foo"
id="rdobuy"
(change)="showSelection = false"
/>
<label class="radio-label" for="rdobuy">All</label>
</div>
<div>
<input
type="radio"
name="rdosell"
[checked]="showSelection"
value="bar"
id="rdosell"
(change)="showSelection = true"
/>
<label for="rdosell" class="radio-label">Selection</label>
</div>