Utilizing $resource in Angular, I am retrieving a JSON object with the following structure:
[
{
"id": 0,
"name": "Type1"
},
{
"id": 1,
"name": "Type 2"
}
]
Upon fetching the data, when I console.log(jsonObject), it displays:
[Resource, Resource, $promise: Object, $resolved: true]
I am seeking a way to eliminate $promise & $resolved from the resulting object. I attempted using angular.fromJson(json), but these properties persist.