Hi, I am trying to add an array and a variable and "." between them. datais the object i get from json. A valuePickupis a variable.
I use this
self.GetIndex = function (valuePickup) {
$http.get("someURL").success(function (data, status, headers, config) {
console.log(data + "." + valuePickup);
console.log(data.categories);
});
}
It looks something like this. and what I get in return for[object Object].categories
Is there a way to join an array object and a variable.
source
share