I’ve been playing around with this for an hour or so but can’t seem to get the min date validation working on a date input I have. This is the simple html I have:
Any date I enter before the min causes the “ng-valid” class to be applied. Further, {{date}} is printing the date in exactly the format specified in the angular docs.
Related to this, is there any way to make it impossible to pick a date in the iOS datepicker that is before today? That would be ideal as well. Thanks!
The “min” and “max” attributes are only there for form-validation.
There is no better implementation on mobile devices for this new html5 feature, yet.
Or you are using 3 (yyyy, mm, dd) select inputs instead of the date picker.
For that you could only provide valid values.
Yeah it is dependend how this thing is implemented in the browsers.
It also works in Chrome very well.
But you have to consider that safari and mobile safari are different things.
If you use type date, number or select boxes on mobile device the system default behavior is triggered (you see the iOS or Android datepicker… not the browser date picker).
It has nothing to do with ionic… only a mobile - non-mobile thing