Here is section of code applied on
<div class="container" data-ng-app="myApp" ng-controller="hController">
<li ng-repeat="x in names">
{{ x.Name + ', ' + x.Country }}
</li>
</ul>
Controller Implementation
<script>
var app = angular.module('myApp', []);
app.controller('customersCtrl', function($scope, $http) {
$http.get("http://localhost:8080/rest/hotel")
.success(function(response) {$scope.names = response.records;});
});
</script>
</head>
Error i can see in web console
Error: [ng:areq] http://errors.angularjs.org/1.3.14/ng/areq?p0=hotelController&p1=not%20a%20function%2C%20got%20undefined at Error (native) at http://localhost:8080/resources/js/angular.min.js:6:417
i have already added angular.min.js in path