Sign up ×
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them, it only takes a minute:

I would like to use the setDateDisabled method in bootstrap-datepicker, but unsure on how to use it in angular.

https://bootstrap-datepicker.readthedocs.org/en/latest/methods.html#setdatesdisabled

I managed to initialize the datepicker nicely with

<input ui-date="datepickerOptions"  ng-model="rigDate.date" />

and this on the javascript side

   $scope.datepickerOptions = {
            orientation: 'top',
            startDate: PayPeriodService.getStartDate(),
            endDate: PayPeriodService.getEndDate(),
            format: 'yyyy-mm-dd',
        };

using angular-ui

https://github.com/angular-ui/ui-date

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I was able to use bootstrap datepicker by using directives and have the link object within directive to manipulate the datepicker using jquery code.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.