I am using basic input component for validating name.
It is accepting only characters and not allowing any special characters to enter. This condition is working fine.
Validating code:
firstname: [null, [Validators.required, Validators.pattern('[a-zA-Z][a-zA-Z]+')]],
But i need one more requirement:
1) It should accept even a single character, but it is accepting minimum 2 character by default.How can i change this default behaviour??
Here is the stackblitz link.