Попробуй вот так
<div class="radio">
<label>
<input type="radio" name="radio" value="New" (click)="setradio('New')" [checked]='true' ngModel>
New
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="radio" value="Renewal" (click)="setradio('Renewal')" ngModel>
Renewal
</label>
</div>
<div *ngIf="isSelected('New')" >
<input type="text"/> New radio button selected
</div>
<div *ngIf="isSelected('Renewal')">
<input type="text"/> Renewal radio button selected
</div>
в вашем component.ts
private selectedLink: string="New";
setradio(e: string): void {
this.selectedLink = e;
}
isSelected(name: string): boolean {
if (!this.selectedLink) { // if no radio button is selected, always return false so every nothing is shown
return false;
}
return (this.selectedLink === name); // if current radio button is selected, return true, else return false
}