fragaria / angular-daterangepicker

Angular.js wrapper for dangrossman/bootstrap-daterangepicker
MIT License
519 stars 371 forks source link

Add validation to ensure date range is actually defined #120

Closed bmoregeo closed 5 years ago

bmoregeo commented 8 years ago

It is possible for the date range object to get defined without actually specifying a date. Therefore you can't just see if the model has data associated with it. You actually need to check if the start/end dates are specified. I added it as another attribute directive so that it didn't interfere with the rest of the main directive