I need to make a call to my backend, when user change month on datepicker calendar is that possible with UI Bootstrap 1.3 ?
相关问题
- angularJS: ui-router equivalent to $location.searc
- Separate AngularJS Controllers Into Separate Files
- Angular ngAnimate not working first time on page l
- Ionic Spinner not showing up
- Upload file to Google Cloud Storage using AngularJ
相关文章
- Passing variable through URL with angular js
- Watch entire object (deep watch) with AngularJS
- Angular ng-if change span text
- Can ng-show directive be used with a delay
- AngularJS $routeParams vs $stateParams
- Woocommerce update shipping methods in checkout vi
- Multiple parameters in AngularJS $resource GET
- How to set class/style of accordion heading in Ang
You can extend the datepicker directive using a decorator, and in the decorator overwrite the
compile
function to add a$watch
onactiveDate
. You can check if the month or year of the date has changed, and if so call a function on a service that you inject into the decorator. Pass in the date if necessary and in the service perform your call to the backend.Example below and in fiddle -
MyService
is just logging the date but you can replace with call to backend.