Had this exact problem and wrote a question on Stackoverflow for this which 
was unanswered for about 1 month until I found the "solution" in a comment 
and plunkr for another similar question and did a writeup: 
http://stackoverflow.com/questions/24985387/disable-dates-using-factory-response-ui-bootstrap-datepicker/26226210

Hope it helps,
BR/Andreas

Den onsdagen den 20:e augusti 2014 kl. 09:57:32 UTC+2 skrev Андрей Скрыпник:
>
> Hi, i have next question. I need to disable dates in Datepicker object 
> dynamically. I know that exist next method:
>
>   $scope.disabled = function(date, mode)
>
> but as i understood it work just when page is loading. 
>
> I need that it work by next scheme for example:
>
> 1. I open site
> 2. click button
> 3. Make request to server and receive an array of dates to be disabled
> 4. showed Modal dialog with Daticker and disabled received dates in it
>
> How to do it properly ?
>
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to