How to make my ionic android application function onlne and offlne

I have been working on an ionic frameowork project and the data and images have comes diectly from my server and database because am using my custom apis. How would I make my data and images function offline. That is when their's no network, users can still see images and data pulled when they were online. How do I go about this syncronisation?

This question spreads through a wide scope depending on how much data you want the user to allow browse offline.

However, If you want something more than the normal caching ionic provides, you will have to look at a data storage, like Sqlite

Following links will give you an idea

HTML5 Offline Mobile App Using Ionic and PouchDB

ionic framework sync data and work offline