Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

pattern validator angular

<input name="firstName" ngModel pattern="[a-zA-Z ]*">
Comment

Angular validators pattern

content_copy
const control = new FormControl('1', Validators.pattern('[a-zA-Z ]*'));

console.log(control.errors); // {pattern: {requiredPattern: '^[a-zA-Z ]*$', actualValue: '1'}}
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to sort an array of object 
Javascript :: tailwind config for nextjs 
Javascript :: js get selected option element 
Javascript :: javascript ready state 
Javascript :: react dont render component until loaded 
Javascript :: convert string uppercase javascript 
Javascript :: js get day name from date 
Javascript :: mongodb mongoose push into nested array 
Javascript :: js copy array into another 
Javascript :: mongoose put request 
Javascript :: set 404 handling via express in node 
Javascript :: how to submit form on changed url in function in jquery 
Javascript :: swap in javascript 
Javascript :: sort in javascript array 
Javascript :: element clicked js 
Javascript :: react add class to each children 
Javascript :: send x-www-form-urlencoded request nodejs 
Javascript :: list of higher-order functions javascript 
Javascript :: javascript create node from innerhtml 
Javascript :: javascript MIN_VALUE 
Javascript :: netmask /24 
Javascript :: javascript array.find 
Javascript :: get values inside json node js 
Javascript :: javascript select multiple values 
Javascript :: how to run an existing react project 
Javascript :: javascript get string from array with space between 
Javascript :: sequelize migration 
Javascript :: why does my form reload the page? html js 
Javascript :: for of loop js 
Javascript :: initialize function in javascript 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =