I want to show the full table when the 'all' radio button is clicked. I want to show the row containing only 'male' when the male radio button is clicked. And I want to show the row containing only 'female' when the female radio button is clicked. All it shows is a blank page. My code is:
<form>
<input type="radio" name="r" [(ngModel)] = "chk1"> All
<input type="radio" name="r" [(ngModel)] = "chk2"> male
<input type="radio" name="r" [(ngModel)] = "chk3"> female
</form>
<table>
<tr>
<th>Name</th>
<th>Gender</th>
</tr>
<tr *ngIf = "(chk1 || chk2">
<td>abc</td>
<td>male</td>
</tr>
<tr *ngIf = "chk1 || chk3">
<td>xyz</td>
<td>female</td>
</tr>
</table>