Hi Team,

I was going through the form validation article in angular2 and have one 
concern. Basically, I am facing an issue while validating a form through 
Reactive methodology. Please find the below steps:
1. My form is loaded with a text field 'Display Name' that is empty.
2. This is mandatory field.
3. I click on 'Display Name', dont do anything and then click outside. I 
want an error message 'Name is required.' as soon the focus switches from 
'Display name' and it is empty.

I did go through the sample plunker application for all types of form 
validation on angular.io site( 
https://angular.io/docs/ts/latest/cookbook/form-validation.html#) but to my 
surprise, my issue is reproducible there also. In template driven approach, 
when you click on 'New Hero' button and then click on Name text field and 
then do not do anything and change your focus, you get an error message 
saying 'Name is required.'. But reactive forms doesnt show this behaviour. 
There is no error message.

Please help.

Do revert if any clarifications are required.

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to