When the value is "N" for Non Rule Based and "R" for Rule based, I need to dynamically select the corresponding Radio button in the UI.
In ts.
this.vGroup = this.arr.vzGroup; // the value of vGroup is either "R" or "N"
To accomplish this, I must create a radio button in the UI with options for "Rule" and "Non Rule", ensuring that the correct option is pre-selected.
This is my attempt:
<input type="radio" name="optradio" [checked]=" *ngIf="vzGroup=='R'" ? 'true' : 'false' ">
<input type="radio" name="optradio" [checked]=" *ngIf="vzGroup=='N'" ? 'true' : 'false' ">