Arguably, most use cases for a date picker is to select a single date. The default behaviour for the directive should be as a single date picker. Picking a date range should be an optional setting.
ranged could be implemented as a boolean flag that changes the internal picking mechanisms, or it could be as a behaviour modification that adds or changes the controller behaviour as a dependant directive.
Arguably, most use cases for a date picker is to select a single date. The default behaviour for the directive should be as a single date picker. Picking a date range should be an optional setting.
Possible usage pattern:
The
ranged
attribute triggers the date range picker.