Help me fix my code. I change the port and restart server, it still not works.
<div ng-repeat="x in records"> {{x.name}} {{x.email}} {{x.number}}</div>
this does not displaying anything
My code here
myApp.controller('myController', function($scope, $http) {
$http({
method : "GET",
url : "http://localhost:8081/contact"
}).then(function successCallback(response){
console.log("success");
$scope.records = response.data;
}, function errorCallback(response){
console.log("error");
})
});