mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
test(item): item/sliding test structure updated
item/sliding test structure updated
This commit is contained in:
9
src/components/item/test/sliding/app/app.component.ts
Normal file
9
src/components/item/test/sliding/app/app.component.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { RootPage } from '../pages/root-page/root-page';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
template: '<ion-nav [root]="root"></ion-nav>'
|
||||||
|
})
|
||||||
|
export class AppComponent {
|
||||||
|
root = RootPage;
|
||||||
|
}
|
@ -1,30 +1,20 @@
|
|||||||
import { Component, NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { BrowserModule } from '@angular/platform-browser';
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
import { IonicApp, IonicModule } from '../../../../..';
|
import { IonicApp, IonicModule } from '../../../../..';
|
||||||
|
|
||||||
import { RootPage } from '../pages/root-page/root-page';
|
import { AppComponent } from './app.component';
|
||||||
|
import { RootPageModule } from '../pages/root-page/root-page.module';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
template: '<ion-nav [root]="root"></ion-nav>'
|
|
||||||
})
|
|
||||||
export class E2EApp {
|
|
||||||
root = RootPage;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
E2EApp,
|
AppComponent
|
||||||
RootPage
|
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
IonicModule.forRoot(E2EApp)
|
IonicModule.forRoot(AppComponent),
|
||||||
|
RootPageModule
|
||||||
],
|
],
|
||||||
bootstrap: [IonicApp],
|
bootstrap: [IonicApp],
|
||||||
entryComponents: [
|
|
||||||
E2EApp,
|
|
||||||
RootPage
|
|
||||||
]
|
|
||||||
})
|
})
|
||||||
export class AppModule {}
|
export class AppModule {}
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { IonicPageModule } from '../../../../../..';
|
||||||
|
|
||||||
|
import { RootPage } from './root-page';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
RootPage,
|
||||||
|
],
|
||||||
|
imports: [
|
||||||
|
IonicPageModule.forChild(RootPage),
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class RootPageModule {}
|
Reference in New Issue
Block a user