docs(e2e): lazy load modals in action-sheet/basic, alert/basic, app/cordova

This commit is contained in:
Dan Bucholtz
2017-03-03 15:07:43 -06:00
parent a43386a405
commit 25f942e70f
7 changed files with 15 additions and 15 deletions

View File

@@ -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]

View File

@@ -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;