The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Trollchik (1) [Avatar] Offline
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 ?