Assuming something like this...
@ViewChild('checky') checky: ElementRef<HTMLInputElement>;
You could have something like this:
if (this.modalMetadata.president.HasNonconsecutiveTerms) {
this.checky.nativeElement.checked = true;
} else {
this.checky.nativeElement.checked = false;
}
No comments:
Post a Comment