Allow init-date to be set just as min-date#2132
Conversation
So we can bind `init-date` to element with `datepicker-popup` directive or to global `datepickerConfig`.
|
Sorry for the spam of commits but I finally found a clear and working solution. Some specs would be cool but first I wanted to hear that the change is okay =) |
|
@jtomaszewski Seems that this is confusing a lot of people. Probably we need to improve the docs or change the API. |
|
Ah. So this is what are these 👀 icons for on the bootstrap docs page - I've been wondering for days what they mean. The API is rather OK I think. |
|
@jtomaszewski I suppose we can close this then. If you think we can improve our docs please send a PR. |
Currently, we can bind
init-dateattribute only todatepickerattribute.If I set with on element with
datepicker-popupdirective,init-dateattribute is ignored. Example:It isn't stored also in global
datepickerConfig- why not, ifmin-dateandmax-dateis there at the same time?