I have the 2 following JSON:
[
"36Yhfdjrnbfkdjres984",
"53673hifujhdjkhgk77",
"3456duedhde84473"
]
and
[
{"_id":"36Yhfdjrnbfkdjres984"},
{"_id":"53673hifujhdjkhgk77"},
{"_id":"3456duedhde84473"}
]
I need to parse both with 2 differents methods:
$scope.onClickItem = function(tag) {
$http.get('http://localhost:5000/api1')
.success(function (response) {
console.log("response ", response);
})
.error(function (response) {
console.log(response);
});
};
In response, I can see corectly the right JSON I need to get the id for /api1 and /api2