Angular Typeerror: _co.disable is not a Function

Asked

Viewed 209 times

1

I would like to understand what is causing this error in my application. Follows the codes:

desabilitar(elemento){
var radio = document.getElementById(elemento) as HTMLInputElement;
radio.checked = false;
}



<mat-radio-button class="margem" value=1 (change)="getRadioValorR($event)" click="desabilitar(G0)">1</mat-radio-button>

<mat-radio-button id="G0" name="G0" *ngIf="!getClass0()" class="margem" value="0" disabled>0</mat-radio-button>
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.