Depending on user input I need to make API calls which then returns me JSON Data.
$scope.citys = [];
$http.get($scope.apiURL+newCity).then(function(response) {
$scope.citys.push(response.data);
});
So after lets say two such requests I have a bunch of JSON data in my citys array.
When I try to access it however I receive nothing :(
<ul>
<li ng-repeat="data in citys">{{citys.data.city.name}}</li>
</ul>
Can someone point me in the right direction, regarding what I am doing wrong? Thanks.
{{citys.data.city.name}}
should be{{data.city.name}}
i think. – Chandermani Jun 2 at 12:00