Problem
I created my first project with ionic framework using ionic tabs template and this is an example of the project : (https://github.com/driftyco/ionic-starter-tabs) As we see in this project we get a list of friends and a friend detail from an array list created in the services.js file, but I want to get this list and items detail from a json file like this(example https://friends.json).
Question
How can I Pull JSON data from a web server down to my app??
Factory in services.js
Start off with a factory but replace my url wit yours.
Controller in controllers.js
Then make a controller like this. This is when you instantiate the factory to get your data.
Scope added to View
This will bind the data to the scope. And there for make it available to the view.
Finally you will be able to bring the data to the view via $scope I have created a list here of all the friends that you get from get friend with a nice side swip to add more or delete.
Disclaimer
this is some code that I had previously written, I've modified it a bit to fit with your question. I have not ran this version exactly but my full version works fine.
if you wish to see the full code please feel free to check out my github repo https://github.com/joeLloyd/Scripto5000