<input type="text" id="exampleab"
ng-model="a.b"
ui-event="{ blur : 'callScriptThenServer()' }" >
For some reasons the ng-change
on textbox is not working so i am using it; Using Angular-ui's ui-events
.
PROBLEM
I want to call the function only if the value is changed and also want the old value in callback.(since I want to send the oldValue to the server).
I don't want to go via pure directives route because there are so many occurrences of these
NG-CHANGE : on each character changed i get a callback . I don't want that. I need to call the server script .. with the old value in the text box and the new value after blur