Hey there! I've whipped up a simple datepicker for you to check out:
Code Snippet:
<div ng-controller="DatepickerCtrl">
<div style="display:inline-block; min-height:290px;">
<datepicker min-date="minDate" show-weeks="false" class="well well-lg" ng-model="dt"> </datepicker>
</div>
<p>Selected Date: {{dt}}.</p>
Javascript Part:
angular.module('services', ['ui.bootstrap']);
angular.module('services').controller('DatepickerCtrl', function ($scope) {
$scope.toggleMin = function() {
$scope.minDate = $scope.minDate ? null : new Date();
};
$scope.toggleMin();
});
The datepicker seems to be loading fine, however, the ng-model does not update with the selected date and the end paragraph in the code shows a blank value for "dt".
I spotted some similar problems reported on GitHub (https://github.com/angular-ui/bootstrap/issues/808, https://github.com/angular-ui/bootstrap/issues/784) but none of their fixes seem to address this specific issue.
Any suggestions or ideas on how to resolve this? Let me know!