Holland Risley
Holland Risley

Reputation: 6781

Datepicker not highlighting today

I would like today to be highlighted on the UI-Bootstrap date picker. On the UI-Bootstrap demo page the Datepicker example shows a different CSS class on today's date:

http://angular-ui.github.io/bootstrap/

I can't seem to get today to highlight separately from the selected day. I have created a Plunker here,

http://plnkr.co/edit/JCcWQhvLcERssg56pQUA

Upvotes: 0

Views: 1474

Answers (1)

Yaron Schwimmer
Yaron Schwimmer

Reputation: 5357

You should call $scope.today() in your controller. This way, your StartDate will get today's value and therefore will be highlighted. see edited Plunker

Upvotes: 0

Related Questions