My goal is to access the minlength error, but when I check all the errors, it's not there.
Below is my form control
title: new FormControl("", [Validators.minLength(10), Validators.required]),
I expect to see both the required and minlength error here.
ngOnInit(): void {
console.log(this.data.get('title')?.errors)
}
However, only the required error is showing up.
https://i.stack.imgur.com/lUV4s.png
Any suggestions? Thank you!