I am currently working on a project using AngularJS.
Within my service.js
file, I am attempting to retrieve some values. However, instead of receiving the actual data, I am getting back a promise
object with some $$variables along with the desired data.
The issue I am facing is that I cannot manipulate the data properly as it is in promise form. How can I extract only the data object from this?
function loadLinks(response, link) {
return SpringDataRestAdapter.process(response, link)
.then(function (results) {
return results;
});
}
I am utilizing Spring Data Rest for this task. This code was copied from another service that was functioning correctly, but unfortunately, this one is encountering issues.
Any assistance or guidance would be greatly appreciated!
Thank you in advance!