fetching json

Kmandapalli
Posted by Kmandapalli under AngularJS 1x category on | Points: 40 | Views : 1038
<script>
var countryApp = angular.module('countryApp', []);
countryApp.controller('CountryCtrl', function ($scope, $http){
$http.get('countries.json').success(function(data) {
$scope.countries = data;
});
});
</script>

Comments or Responses

Login to post response