This is my code to save data locally, just run at the time; the user is out of network connection:
this.ngf.setItem('layouts', response);
In "response" I have everything saved correctly, but for the images, since their source attributes are external links, while the page is loading the images got an error.
Therefore, I think there might be a way to save the images locally with the local addressed, replaced with the external links in response array. So at the time of connection lost, they will be loaded locally through:
this.ng.getItem('layouts', response);
The problem is I don't know how to develop that idea, or if there is any other solution I would appreciate if you share it here!