AngularJS Datepicker

Hello, I have a problem with the angularJS datepicker from bootstrap3.

I was looking for a solution on but i cant find it.

It is very simple, I don’t want futures dates on the datepicker, I mean, the last item enabled would be today’s date, and the futures dates must be disabled (greyed)

In jQuery is very simple:

I would like to know how to implement this on angular.

I cant set hardcoded min=“minDate” max=“'” on the html because it is a dynamic app.

thanks in advance.

You can set those attributes dynamically, there’s actually an example of this on the angular-strap page you linked to:

<input type="text" class="form-control" ng-model="fromDate" data-max-date="{{untilDate}}" placeholder="From" bs-datepicker>

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.