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

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -