My Angular 13 application has a reactive form set up as follows:
I am trying to validate this form using the following approach:
However, I encountered the following error messages:
Additionally, it is important to note that within the component, there is a "get" function defined as:
get firstname() {
return this.myGroup.get('firstname');
}