Is there a way to provide datepicker-options in ui.bootstrap.datepickerPopup in the HTML instead of creating a separate object for each datepicker?
The original documentation says
to configure the uib-datepicker you need to create an object in Javascript with all the options and use it on the datepicker-options attribute
However, I have almost 40 different datepickers on a page. And I have to provide min and max dates dynamically.
Earlier versions (ui-bootstrap-tpls-0.13.4.js) of datepicker, I could use max-date or min-date attribute with some ng-model value on the input element itself. Now do I have to create a JS object for each datepicker-options? Is there a way to achieve this?