Hi,
when I create a new page in an Ionic4 app:
ionic generate page mypage
Ionic creates by default a lazy load page, that is the constructor and the ngOnInit function are called each time I navigate to that page.
Now, is it possible to have a page that is created only when the app starts up or a page that is created only the first time that it is called?
If yes, how the standard page should be modified?
Thank you
cld
ionic generate page PageName —no-module
1 Like
With ionic 4 the command:
ionic generate page Detail --no-module
doesn’t work.
It creates the modules page, could it be a bug?
I created the app with the command:
ionic start myTest3 sidemenu --type=angular
Ionic info:
Ionic:
Ionic CLI : 5.0.0
Ionic Framework : @ionic/angular 4.4.2
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v10.15.3
npm : 6.4.1
OS : Windows 10
cld