checkError(typeofValidator: string, controlName: string): boolean {
return this.CustomerModel.formCustomerGroup.contains[controlName].hasError(typeofValidator);
}
I am currently learning Angular. I came across the same code in a course video, but it is running fine in the course environment. However, I am encountering an error when I try to run it myself. I am not sure what I am doing wrong and would appreciate any help. Thanks!