The following code shows how to Read json data from URL. Example. Complex nested JSON objects AngularJs Get Data From Json File - It is very common to get data from json file while working with AngularJs. Angular Directive For Beautiful JSON This example demonstrates the code that is used to consume RESTful APIs using AngularJS resource service The AngularJS client will be accessed by opening the index.html file in your browser, and will consume the service accepting requests atThe service will respond with a JSON representation of a greeting http.get(phones/phones.json).success(function(data) .Этот код в контроллере с помощью сервиса http извлекает title и body из json файла, который лежит рядом в папке phones/phones.json и выводит его в html. AngularJS will invoke planetController with a scope and http object. scope is the application object (the owner of application variables and functions). http is an XMLHttpRequest object for requesting external data. Then, http. get() reads static JSON data from http Tutorial 10: Angularjs routeParams Example | Angularjs routeParams.http.get(js/data.json).success (function(data) scope.guitarVariable data with PHP file in Web Servis.