Multiple Pages in a Module


#1

Can we have multiple pages in a module which is loaded lazily ? OR Only one page per module is allowed to achieve lazy loading ?


#2

why would you want to have multiple pages in one file?
you could generate your pages with ionic g page [name], as long as I’m concerned are they setup for lazy loading by default, if you only wanted to reduce your work for lazyloading your pages in the future


#3

How can i navigate between 2 lazy loaded pages in Ionic 3 ?
Say, tabs page is loaded lazily and one of the tab is Module-1. When i try to push another page (Just page without any module) within the tab, getting error of “no entry component found” though the new page is already added in the entry components list of tab module.


#4

hello,

maybe you are looking for this:
this.nav.push(‘myPage’);
or that
this.nav.push(otherPage);

where this ‘myPage’ is lazy loaded. As you see the argument is a string. For proper working you must implement correct lazy loading requerments

otherPage is a object and for proper working app.module.ts must implemented correctly.

best regards, anna-liebt.