Within an Angular HTML document, I have a set of radio buttons that share common names. I am attempting to update their disabled and checked properties from a .ts file, but the changes are not taking effect. Here is the code snippet:
let elements = document.getElementsByName('option');
console.log(elements.length);
for(var i=0;i< elements.length;i++){
elements[i].setAttribute('disabled','true');
elements[i].setAttribute('checked','false');
}
Is there anyone who can provide assistance with this issue?