I am currently facing an issue when trying to read data from an angular promise that was returned.
Before, I had the following code:
var data = category.get({id:userid});
Later, I realized that the data being returned was an unresolved promise. So, I made a change to:
category.get({id:userid}, function(result){
console.log('the result are', result);
});
Upon printing the result, I observed that it was now a resolved promise with my data inside Resource: 0 as shown below.
Now, I am wondering how to access the Resource mentioned above. It seems that direct access is not permitted. Any guidance on this matter would be highly appreciated.