Hi Nagendra,
Sorry for the delay. The reason for the reported
issue is some bug/breaking issue in angular 15 version. Please refer to the
below angular GitHub link for more details.
GitHub link: https://github.com/angular/angular/issues/48350
To resolve this issue, please refer to the
below code snippet and sample link. using the disable method of form group, we can disable the specific form control or entire form group.
ngOnInit() {
this.SignupForm = new FormGroup({
checkbox: new FormControl(null, [
Validators.required,
]),
});
this.SignupForm.get('checkbox').disable();
}
|
Sample link: https://stackblitz.com/edit/angular-lau8au-qbbdax?file=src%2Fapp.component.ts
Get back to us if you need
any further assistance on this.
Regards,
YuvanShankar A