Suppose contents are loaded to the app through fetching html content from server, like this:
this.http .get('http://example.net/somecontent.html') .map(response => response.text()) .subscribe(html => myVal = html);
How would you cache the entire content with the image downloaded to the device locally, so you can access the content even when internet is not available?
Even if I save the contents into a variable and stored as localStorage, user still need internet access to render the images in the content because it’s just plain html code.
Furthermore, localStorage might not have enough memory to save everything, if I use SQLLite instead, how would you locally cache the images in the content?