mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs(e2e): lazy load modals in action-sheet/basic, alert/basic, app/cordova
This commit is contained in:
@@ -12,8 +12,11 @@ import { PageOneModule } from '../pages/page-one/page-one.module';
|
||||
],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
IonicModule.forRoot(E2EApp),
|
||||
ModalPageModule,
|
||||
IonicModule.forRoot(E2EApp, {}, {
|
||||
links: [
|
||||
{ loadChildren: '../pages/modal-page/modal-page.module#ModalPageModule', name: 'modal-page'}
|
||||
]
|
||||
}),
|
||||
PageOneModule
|
||||
],
|
||||
bootstrap: [IonicApp]
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { AlertController, ModalController } from '../../../../../..';
|
||||
|
||||
import { ModalPage } from '../modal-page/modal-page';
|
||||
|
||||
@Component({
|
||||
templateUrl: 'page-one.html'
|
||||
})
|
||||
@@ -83,7 +81,7 @@ export class PageOne {
|
||||
alert.addButton({
|
||||
text: 'Open Modal',
|
||||
handler: () => {
|
||||
this.modalCtrl.create(ModalPage).present();
|
||||
this.modalCtrl.create('modal-page').present();
|
||||
|
||||
// do not close the alert when this button is pressed
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user