In MongoDB I have the following the document.
{
"_id": {
"$oid": "58402903734d1d19c9a34cdd"
},
"deliveryComp": "abc",
"poorDel": 0,
"okDel": 1,
"wellDel": 0,
"veryWellDel": 1
}
When I call this data from mongodb using an angular controller it is being returned as an array, like so:
[{
"_id": {
"$oid": "58402903734d1d19c9a34cdd"
},
"deliveryComp": "abc",
"poorDel": 0,
"okDel": 1,
"wellDel": 0,
"veryWellDel": 1
}]
I want to display the values but I don't want to use ng-repeat. Each value needs to be displayed in different parts of the app. There is no "repeating" data.
How can I achieve this?