<html ng-app="myAPP">
<head>
<meta charset="utf-8">
<title>Angular.js JSON Fetching Example</title>
<script>
var myapp = angular.module("myAPP", []);
myapp.controller('simplectrl', function($scope, $http) {
$http.get('countries.json').success(function(data) {
console.log(data);
$scope.countries=data.countries;
});
});
</script>
</head>
<body ng-controller="simplectrl">
<h3> Country Data </h3>
<table>
<tr>
<th> Country </th>
<th> Population </th>
</tr>
<tr ng-repeat="country in countries">
<td>{{country.population}}</td>
</tr>
</table>
</body>
</html>