Angular form validation - Template Driven Forms with Error Message.

preview_player
Показать описание
Creating a form and giving validations to all fields.
below are the validation patterns for mobile number, password and email.

mobNumberPattern = "^((\\+91-?)|0)?[0-9]{10}$";
passwordPtn ='^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,16}$'
emailPattern = "^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$"
Рекомендации по теме
Комментарии
Автор

Hi can you please, share this code. It would be a great help.

lavanyaarao
Автор

Can you plz share the code i have sent a mail to u r mail

Siva_pravallika
Автор

Hi could you share link for code please

pratyushtiwari
Автор

Password and confirme password wali validation bro😰

nikhil