MaxDate help
See original GitHub issueHi!
I can’t get the max-date functionality to work on my project. I’ve tried several ways to pass the maxDate variable (set to current day = new Date() ) but nothing happens.
This is my markup:
div class="date-picker" id="calendar_to" date-picker="calendar_to" watch-direct-changes date after="calendar_from" before="calendar_to" min-view="date" max-view="date" max-date></div>
I tried max-date=“maxDate”, max-date=“{{maxDate}}”, max-date=“{maxDate}”, max-date=“{new Date()}”, etc…
And I tried declaring maxDate in the controller and in a directive.
Which is the right way to do this? Haven’t found a a solution in the documentation nor in the various issues reported.
Any help out there?
Thanks
Issue Analytics
- State:
- Created 8 years ago
- Comments:5
Top GitHub Comments
@miguelRivero Can you please explain how you got it to work? I am having the same problem.
I managed to make it work. Now I’, struggling to recover the isbefore, isafter functionality, that seems lost in new version. Is it? But maybe this is material for another issue.