datepicker - angularjs timepicker ng-change -
i using angularjs timepicker (ui.bootstrap.timepicker). fire event when timepicker changed. looked ng-change attribute, did not find one.
my purpose save changes made model when time changed. right i've used ng-model set model, cannot figure out how notify controller can perform save (the model serialized localstorage). avoid use of "save" button if possible.
on related note, same thing ui.bootstrap.datepicker.
you use $scope.$watch listen changes timepicker (or datepicker) , call whatever needed in controller. here plunker based on bootstrap example alerts whenever time changed. should able apply similar logic datepicker well.
Comments
Post a Comment