working with pattern validator in angular 7 example Example: pattern validator angular <input name="firstName" ngModel pattern="[a-zA-Z ]*">