Currently, in my Angular application, I am utilizing $odataresource for handling data retrieval and updates.
The code snippet I am working with is as follows:
var measure = $odataresource("http://windows-10:8888/ChangeMeasure/");
var myMeasure = measure.odata().filter("ID",$scope.ngData[index].ID)
.single();
Now, I am trying to perform an update on myMeasure using the following code:
myMeasure.$update();
The issue I am facing is that after executing $update, myMeasure remains an unresolved promise.
Could you please provide guidance on how to correctly call myMeasure.$update();
once the promise for myMeasure
has been resolved?