I have very simple code, but It doesn't allow me to check the All option, How can I fix this ?
Reproducible Demo -> https://stackblitz.com/edit/angular-tbanxq?file=src%2Fapp%2Fhello.component.ts
import { Component, Input } from "@angular/core";
@Component({
selector: "hello",
template: `
<h1>Hello {{ name }}!</h1>
<div>
<input
type="radio"
name="commentType1"
value="foo"
id="rdobuy"
(click)="showSelection = false"
/>
<label class="radio-label" for="rdobuy">All</label>
</div>
<div>
<input
type="radio"
name="commentType1"
value="bar"
id="rdosell"
(click)="showSelection = true"
/>
<label for="rdosell" class="radio-label">Selection</label>
</div>
<div *ngIf="showSelection">Hello</div>
`,
styles: [
`
h1 {
font-family: Lato;
}
`
]
})
export class HelloComponent {
@Input() name: string;
}