F
F
faragly2015-01-01 20:43:41
Angular
faragly, 2015-01-01 20:43:41

How to get previous value of select angularjs?

Hello! When calling ng-change, you also need to get the previous select value. How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
faragly, 2015-01-01
@faragly

Answer found!

$scope.$watch('obj.key', function(newValue, oldValue){

});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question