I'm currently trying to use click and ngIf*to do this, but the change only happens if I double click. Also, if I double click the currently selected option, the view will change and I don't want that to happen. How can I do this properly?
<fieldset class="form-group col-md-3">
<div class="form-check">
<label class="form-check-label">
<input (click)="computation = !computation" type="radio" class="form-check-input" name="optionsRadios" id="optionsRadios1" value="option1" checked>
Enable View
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input (click)="computation = !computation" type="radio" class="form-check-input" name="optionsRadios" id="optionsRadios2" value="option2">
Disable View
</label>
</div>
</fieldset>
<div *ngIf="computation" class="form-group col-md-3">
<label for="app_id_org_input">Enabled</label>
<input type="text" class="form-control" id="app_id_org_input" placeholder="Enabled">
</div>
<div *ngIf="!computation" class="form-group col-md-3">
<label for="app_id_input">Disabled</label>
<input type="text" class="form-control" id="app_id_input" placeholder="Disabled">
</div>