Okay well retrieving data from a server you’ll do using an Angular service or factory, I have an example showing how that can be done… Examples are plentiful on the web though as this is standard AngularJS functionality (not specific to Angular).
Here is my example showing the use of a factory:
The Ionic team also have a tutorial on use of services:
http://learn.ionicframework.com/formulas/backend-data/
For local storage, there is a great Angular tutorial here:
http://learn.ionicframework.com/formulas/localstorage/
That will walk you through the storing and retrieval of the local data.
Good luck