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:
@@ -19,6 +19,7 @@ import { PageOneModule } from '../pages/page-one/page-one.module';
|
||||
{ name: 'page-three', loadChildren: '../pages/page-three/page-three.module#PageThreeModule'},
|
||||
{ name: 'tabs-page', loadChildren: '../pages/tabs/tabs-page.module#TabsPageModule'},
|
||||
{ name: 'tabs-page-one', loadChildren: '../pages/tabs-page-one/tabs-page-one.module#TabsPageOneModule'},
|
||||
{ name: 'modal-page', loadChildren: '../pages/modal/modal.module#ModalPageModule'}
|
||||
]
|
||||
}),
|
||||
PageOneModule
|
||||
|
||||
@@ -2,15 +2,13 @@ import { NgModule } from '@angular/core';
|
||||
import { DeepLinkModule } from '../../../../../..';
|
||||
|
||||
import { PageTwo } from './page-two';
|
||||
import { ModalPageModule } from '../modal/modal.module';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
PageTwo,
|
||||
],
|
||||
imports: [
|
||||
DeepLinkModule.forChild(PageTwo),
|
||||
ModalPageModule
|
||||
DeepLinkModule.forChild(PageTwo)
|
||||
],
|
||||
entryComponents: [
|
||||
PageTwo,
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { ModalController } from '../../../../../..';
|
||||
|
||||
import { ModalPage } from '../modal/modal-page';
|
||||
|
||||
@Component({
|
||||
templateUrl: 'page-two.html'
|
||||
})
|
||||
@@ -13,7 +11,7 @@ export class PageTwo {
|
||||
constructor(public modalCtrl: ModalController) {}
|
||||
|
||||
openModal() {
|
||||
const modal = this.modalCtrl.create(ModalPage);
|
||||
const modal = this.modalCtrl.create('modal-page');
|
||||
modal.present();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user