Kirill Pakhomov Kirill Pakhomov - 10 months ago 39
AngularJS Question

Retrieving data from the different file

I've got a .json file with a bunch of objects in it. The question is basically how do I retrieve these and pass them to my .js file where retrieved objects will be outputted in the DOM one by one.


simply make an XHR like other request by just giving path to your json file. You can use angular's $http service to do that.