AngularJS: Working with JSON Data & HTTP Service

This article shows an example on how you can fetch JSON data from external file. First, let’s create an example of inline JSON data inside the controller. In the below code, in countryController, we have countries array containing country and capital name. In the HTML view, we have used ng-repeat directive to loop through the … Read more