Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Import @IonicPage pages from NPM module for lazy loading in App

$
0
0

@Rainer-Feike wrote:

I’d like to declare some pages with their dependencies in a separate NPM module. Then import that module in my app and jump to that pages like navController.push(“pagename”);

The reason for this is distributed development and very loose coupling of artefacts. I have succeeded with pushing @Components to NPM modules, but can’t get @IonicPages to work.

I’ve tried to create an @ngModule that declares and exports my pages (also the pages are @ngModules), then push that module to NPM and add the dependency to my app.

Unfortunately webpack does not put that pages to the correct bundle in the build - seems like - don’t know.

Someone here who has already managed to solve such an issue?

Thanks, Rainer

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>