Hello guys...In one my angular2 forms i have a datepicker which is a required field...When user proceeds to save the form without selecting date i am planning to show the date field as invalid and applied this condition for my datepicker-<vaadin-date-picker [invalid]="!StartDate.valid && isSubmitted" [ngFormControl]="StartDate"></vaadin-date-picker> But this doesn't show the field as an invalid control...If i simply keep the <vaadin-date-picker [invalid]="isSubmitted"></vaadin-date-picker> the invalid property applies to the control...
Here isSubmitted is a boolean value set to true
Hello guys...In one my angular2 forms i have a datepicker which is a required field...When user proceeds to save the form without selecting date i am planning to show the date field as invalid and applied this condition for my datepicker-
<vaadin-date-picker [invalid]="!StartDate.valid && isSubmitted" [ngFormControl]="StartDate"></vaadin-date-picker>
But this doesn't show the field as an invalid control...If i simply keep the<vaadin-date-picker [invalid]="isSubmitted"></vaadin-date-picker>
the invalid property applies to the control... Here isSubmitted is a boolean value set totrue