I want to make my function wait my variable change the value and then active my function but I don't want to use setTimeout()
.
My ts:
if (this.dadoscadvp1.relacaoParentescoRespFam == 137) {
//seta true o radio button1
this.btn1 = true;
setTimeout(() => {
document.getElementById('radioBtn1').setAttribute('checked', 'checked');
}, 10000);
}