I have a date field like:
input(name='date', type='date', ng-pattern='/^[1900-2016]$/', ng-model='dateModel')
How do you set the ng-pattern for two given dates a date range. For example: only years from 1900 - 2016 are allowed? Keep in mind that we get a date format which basically looks like: 1900-01-01T....
I have two variables: dateRangeFrom, dateRangeTo. Is it somehow possible to use them for the pattern? Because I wanna use this pattern multiple times and the dateRangeTo should be the current year.