I have a model which takes boolean value: rational_thinker: boolean; I set it's value from my frontend through radio boxes as following:
<label #radio class="my-radio-label mdl-radio mdl-js-radio mdl-js-ripple-effect">
<input #btn1 type="radio" value='true' [(ngModel)]='rational_thinker' name="rational_thinker" class="mdl-radio__button" (click)="getRationalThinker(btn1.value)">
<span class="mdl-radio__label">True</span>
</label>
<label #radio class="my-radio-label mdl-radio mdl-js-radio mdl-js-ripple-effect">
<input #btn2 type="radio" value='false' [(ngModel)]='rational_thinker' name="rational_thinker" class="mdl-radio__button" (click)="getRationalThinker(btn2.value)">
<span class="mdl-radio__label">False</span>
</label>
and method that sets the value:
getRationalThinker(value){
this.rational_thinker=value;
}
After initial save the value is stored to my backend, and when I retrieve it again I want the corresponding radio button to be pre-selected, right now it appears blank.
How can I achieve that?
UPDATE:

getRationalThinker(), send it to BE and when exactly are you having trouble initiating the radios buttons? Does the page reload? Do you go from one page to another? Is it an asyncronus call?