test(e2e): picker/basic

This commit is contained in:
Daniel Imhoff
2017-03-03 16:41:39 -06:00
parent 3dfaa4c019
commit ced9bd2bb8
7 changed files with 52 additions and 29 deletions

View File

@ -1,4 +1,4 @@
import { NgModule, Component } from '@angular/core';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule } from '../../../../..';

View File

@ -0,0 +1,8 @@
import { Component } from '@angular/core';
@Component({
template: '<ion-nav [root]="root"></ion-nav>'
})
export class E2EApp {
root = 'E2EPage';
}

View File

@ -0,0 +1,24 @@
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule } from '../../../../..';
import { E2EApp } from './app.component';
@NgModule({
declarations: [
E2EApp
],
imports: [
BrowserModule,
IonicModule.forRoot(E2EApp, {}, {
links: [
{ loadChildren: '../pages/main/main.module#E2EPageModule', name: 'E2EPage' },
]
})
],
bootstrap: [IonicApp],
entryComponents: [
E2EApp
]
})
export class AppModule {}

View File

@ -0,0 +1,17 @@
import { NgModule } from '@angular/core';
import { DeepLinkModule } from '../../../../../..';
import { E2EPage } from './main';
@NgModule({
declarations: [
E2EPage,
],
imports: [
DeepLinkModule.forChild(E2EPage)
],
entryComponents: [
E2EPage,
]
})
export class E2EPageModule {}

View File

@ -1,7 +1,6 @@
import { Component, ViewEncapsulation, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, NavController, PickerController } from '../../../..';
import { Component, ViewEncapsulation } from '@angular/core';
import { NavController, PickerController } from '../../../../../..';
@Component({
templateUrl: 'main.html',
@ -216,28 +215,3 @@ export class E2EPage {
picker.present();
}
}
@Component({
template: '<ion-nav [root]="root"></ion-nav>'
})
export class E2EApp {
root = E2EPage;
}
@NgModule({
declarations: [
E2EApp,
E2EPage
],
imports: [
BrowserModule,
IonicModule.forRoot(E2EApp)
],
bootstrap: [IonicApp],
entryComponents: [
E2EApp,
E2EPage
]
})
export class AppModule {}