Parsen von Json-Array in AngularJS

Iam Neuling in angularjs.Die Anzeige der json in html mit Hilfe von angularjs.Unten ist der code

var app = angular.module('myapp', []);
app.controller('myctrl', function($scope, $http) {
    $http.get("http://localhost:8080/xyz").then(function (response) {

    });
});

Reponse is :

[
  {
    "city": "animal"
  },
  {
    "city": "bird"
  }
]
InformationsquelleAutor Teja | 2016-06-21
Schreibe einen Kommentar