When preloadingStrategy
is set to PreloadAllModules
, my app is fetching all modules/components that I have created. But I am not sure if the app is also fetching all modules/components of Ionic.
Actually, I need to show an error Modal, when the user is performing some action, while the app is offline. But in offline mode, none of the Ionic components work (since they are not preloaded), though my own components and routes are working fine.
So I need to know how to preload a specific module/component of Ionic? In my case ModalController
The errors are as follows:
- "GET http://localhost:8100/40.js net::ERR_INTERNET_DISCONNECTED"
- core-ca0488fc.js:63 ChunkLoadError: Loading chunk 40 failed. (error: http://localhost:8100/40.js) at requireEnsure (http://localhost:8100/runtime.js:127:26) at Array.map () at webpackAsyncContext (http://localhost:8100/main.js:425:34) at loadModule (http://localhost:8100/vendor.js:167829:166) at initializeComponent (http://localhost:8100/vendor.js:169460:20) at http://localhost:8100/vendor.js:169601:32 at ZoneDelegate.invoke (http://localhost:8100/polyfills.js:3594:26) at Zone.run (http://localhost:8100/polyfills.js:3359:43) at http://localhost:8100/polyfills.js:4090:36 at ZoneDelegate.invokeTask (http://localhost:8100/polyfills.js:3626:31)