mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-24 14:58:36 +08:00
test(ngmodule): update to ngmodule
This commit is contained in:
@ -1,11 +1,10 @@
|
||||
import { Component, ViewChild } from '@angular/core';
|
||||
import { Content, ionicBootstrap } from '../../../../../src';
|
||||
|
||||
import { Component, NgModule, ViewChild } from '@angular/core';
|
||||
import { IonicApp, IonicModule, Content } from '../../../..';
|
||||
|
||||
@Component({
|
||||
templateUrl: 'tabs.html'
|
||||
})
|
||||
class TabsPage {
|
||||
export class TabsPage {
|
||||
main = E2EPage;
|
||||
page1 = Page1;
|
||||
page2 = Page2;
|
||||
@ -17,7 +16,7 @@ class TabsPage {
|
||||
@Component({
|
||||
templateUrl: 'page4.html'
|
||||
})
|
||||
class Page4 {
|
||||
export class Page4 {
|
||||
tabsPage = TabsPage;
|
||||
}
|
||||
|
||||
@ -25,7 +24,7 @@ class Page4 {
|
||||
@Component({
|
||||
templateUrl: 'page3.html'
|
||||
})
|
||||
class Page3 {
|
||||
export class Page3 {
|
||||
page4 = Page4;
|
||||
}
|
||||
|
||||
@ -33,7 +32,7 @@ class Page3 {
|
||||
@Component({
|
||||
templateUrl: 'page2.html'
|
||||
})
|
||||
class Page2 {
|
||||
export class Page2 {
|
||||
page3 = Page3;
|
||||
}
|
||||
|
||||
@ -41,7 +40,7 @@ class Page2 {
|
||||
@Component({
|
||||
templateUrl: 'page1.html'
|
||||
})
|
||||
class Page1 {
|
||||
export class Page1 {
|
||||
page2 = Page2;
|
||||
}
|
||||
|
||||
@ -49,7 +48,7 @@ class Page1 {
|
||||
@Component({
|
||||
templateUrl: 'main.html'
|
||||
})
|
||||
class E2EPage {
|
||||
export class E2EPage {
|
||||
@ViewChild(Content) content: Content;
|
||||
page1 = Page1;
|
||||
showToolbar: boolean = false;
|
||||
@ -64,8 +63,32 @@ class E2EPage {
|
||||
@Component({
|
||||
template: '<ion-nav [root]="root"></ion-nav>'
|
||||
})
|
||||
class E2EApp {
|
||||
export class E2EApp {
|
||||
root = E2EPage;
|
||||
}
|
||||
|
||||
ionicBootstrap(E2EApp);
|
||||
@NgModule({
|
||||
declarations: [
|
||||
E2EApp,
|
||||
E2EPage,
|
||||
TabsPage,
|
||||
Page1,
|
||||
Page2,
|
||||
Page3,
|
||||
Page4
|
||||
],
|
||||
imports: [
|
||||
IonicModule.forRoot(E2EApp)
|
||||
],
|
||||
bootstrap: [IonicApp],
|
||||
entryComponents: [
|
||||
E2EApp,
|
||||
E2EPage,
|
||||
TabsPage,
|
||||
Page1,
|
||||
Page2,
|
||||
Page3,
|
||||
Page4
|
||||
]
|
||||
})
|
||||
export class AppModule {}
|
88
src/components/content/test/fullscreen/app-module.ts
Normal file
88
src/components/content/test/fullscreen/app-module.ts
Normal file
@ -0,0 +1,88 @@
|
||||
import { Component, NgModule } from '@angular/core';
|
||||
import { IonicApp, IonicModule } from '../../../..';
|
||||
|
||||
|
||||
@Component({
|
||||
templateUrl: 'tabs.html'
|
||||
})
|
||||
export class TabsPage {
|
||||
main = E2EPage;
|
||||
page1 = Page1;
|
||||
page2 = Page2;
|
||||
page3 = Page3;
|
||||
page4 = Page4;
|
||||
}
|
||||
|
||||
|
||||
@Component({
|
||||
templateUrl: 'page4.html'
|
||||
})
|
||||
export class Page4 {
|
||||
tabsPage = TabsPage;
|
||||
}
|
||||
|
||||
|
||||
@Component({
|
||||
templateUrl: 'page3.html'
|
||||
})
|
||||
export class Page3 {
|
||||
page4 = Page4;
|
||||
}
|
||||
|
||||
|
||||
@Component({
|
||||
templateUrl: 'page2.html'
|
||||
})
|
||||
export class Page2 {
|
||||
page3 = Page3;
|
||||
}
|
||||
|
||||
|
||||
@Component({
|
||||
templateUrl: 'page1.html'
|
||||
})
|
||||
export class Page1 {
|
||||
page2 = Page2;
|
||||
}
|
||||
|
||||
|
||||
@Component({
|
||||
templateUrl: 'main.html'
|
||||
})
|
||||
export class E2EPage {
|
||||
page1 = Page1;
|
||||
}
|
||||
|
||||
|
||||
@Component({
|
||||
template: '<ion-nav [root]="root"></ion-nav>'
|
||||
})
|
||||
export class E2EApp {
|
||||
root = E2EPage;
|
||||
}
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
E2EApp,
|
||||
E2EPage,
|
||||
TabsPage,
|
||||
Page1,
|
||||
Page2,
|
||||
Page3,
|
||||
Page4
|
||||
],
|
||||
imports: [
|
||||
IonicModule.forRoot(E2EApp)
|
||||
],
|
||||
bootstrap: [IonicApp],
|
||||
entryComponents: [
|
||||
E2EApp,
|
||||
E2EPage,
|
||||
TabsPage,
|
||||
Page1,
|
||||
Page2,
|
||||
Page3,
|
||||
Page4
|
||||
]
|
||||
})
|
||||
export class AppModule {}
|
@ -1,64 +0,0 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { ionicBootstrap } from '../../../../../src';
|
||||
|
||||
|
||||
@Component({
|
||||
templateUrl: 'tabs.html'
|
||||
})
|
||||
class TabsPage {
|
||||
main = E2EPage;
|
||||
page1 = Page1;
|
||||
page2 = Page2;
|
||||
page3 = Page3;
|
||||
page4 = Page4;
|
||||
}
|
||||
|
||||
|
||||
@Component({
|
||||
templateUrl: 'page4.html'
|
||||
})
|
||||
class Page4 {
|
||||
tabsPage = TabsPage;
|
||||
}
|
||||
|
||||
|
||||
@Component({
|
||||
templateUrl: 'page3.html'
|
||||
})
|
||||
class Page3 {
|
||||
page4 = Page4;
|
||||
}
|
||||
|
||||
|
||||
@Component({
|
||||
templateUrl: 'page2.html'
|
||||
})
|
||||
class Page2 {
|
||||
page3 = Page3;
|
||||
}
|
||||
|
||||
|
||||
@Component({
|
||||
templateUrl: 'page1.html'
|
||||
})
|
||||
class Page1 {
|
||||
page2 = Page2;
|
||||
}
|
||||
|
||||
|
||||
@Component({
|
||||
templateUrl: 'main.html'
|
||||
})
|
||||
class E2EPage {
|
||||
page1 = Page1;
|
||||
}
|
||||
|
||||
|
||||
@Component({
|
||||
template: '<ion-nav [root]="root"></ion-nav>'
|
||||
})
|
||||
class E2EApp {
|
||||
root = E2EPage;
|
||||
}
|
||||
|
||||
ionicBootstrap(E2EApp);
|
Reference in New Issue
Block a user