im working with angular.
In my service.js
I'm trying to return some values but instead data I get the promise
item with some $$variables & the data Im looking for.
Problem is I can't work with data since it's a promise. How can I get only the data object?
function loadLinks(respuesta,link) {
return SpringDataRestAdapter.process(respuesta, link)
.then(function (results) {
return results;
});
}
Im using Spring Data Rest. I copied this from another service which was working, but this one is not working well.
Any help?
Thanks you!