Angular 5 ionic 3 stop fetching content
I am using the box Content Preview CDN link in the ionic angular hybrid mobile app. Content Preview working fine in application but if we change the screen ( via go back ). It still downloads the content in the background but it should be stopped downloading as we have tried with delete object or assign the object to null.
May I know how we can use the box Content Preview in the angular / Ionic app?
Below the methods, we are doing to load if there is any other way to use box Content Preview in the angular hybrid application please suggest.
Step 1: Index.html
-
Hi ,
I'm not sure I have a direct answer for this, but more along some guidance on things that may help:
- Take a look at the ContentPreview JS file here, line 292. The clearCache call seems to refer to destroy the API reference, which may work.
- Another option is to do this outside of the Elements JS files, something more akin to this.
The only other thing that I can think of right away would just be to purge the content after download, but that's not really what you're trying to get to.
- Jon
Please sign in to leave a comment.
Comments
1 comment