After an $http get request resource api gives back a multyline json:(example)
{"features":["type": "feature", "properties":{ "id": "001", "name": "Example"}]}
How can i get an id from that data?
$scope.myDate = $http.get('http://example.com/').
success(function(data, status){
var test = data.features;
$scope.information = test['type'];
}).
error(function(data, status){
console.log('not');
});
The way i used isn't correct, so any suggestions? Thank you, in advance!