test(item): item/sliding test structure updated

item/sliding test structure updated
This commit is contained in:
Dan Bucholtz
2017-03-20 11:54:34 -05:00
parent 67ddafca25
commit d5ba56f144
3 changed files with 29 additions and 16 deletions

View 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;
}

View File

@ -1,30 +1,20 @@
import { Component, NgModule } from '@angular/core';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
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({
declarations: [
E2EApp,
RootPage
AppComponent
],
imports: [
BrowserModule,
IonicModule.forRoot(E2EApp)
IonicModule.forRoot(AppComponent),
RootPageModule
],
bootstrap: [IonicApp],
entryComponents: [
E2EApp,
RootPage
]
})
export class AppModule {}

View File

@ -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 {}