test(bootstrap): update to use ionicBootstrap

This commit is contained in:
Adam Bradley
2016-05-31 15:49:12 -05:00
parent 94e938d6b3
commit 6e9087534d
114 changed files with 901 additions and 800 deletions

View File

@@ -1,8 +1,8 @@
import {ViewChild} from '@angular/core';
import {App, IonicApp, MenuController, Page, NavController, Alert, Nav} from '../../../../../src';
import {Component, ViewChild} from '@angular/core';
import {ionicBootstrap, MenuController, NavController, Alert, Nav} from '../../../../../src';
@Page({
@Component({
templateUrl: 'page1.html'
})
class Page1 {
@@ -24,11 +24,11 @@ class Page1 {
}
@Page({templateUrl: 'page3.html'})
@Component({templateUrl: 'page3.html'})
class Page3 {}
@Page({templateUrl: 'page2.html'})
@Component({templateUrl: 'page2.html'})
class Page2 {
constructor(private nav: NavController) {}
@@ -38,16 +38,16 @@ class Page2 {
}
@App({
@Component({
templateUrl: 'main.html'
})
class E2EApp {
class E2EPage {
rootPage;
changeDetectionCount: number = 0;
pages: Array<{title: string, component: any}>;
@ViewChild(Nav) nav: Nav;
constructor(private app: IonicApp, private menu: MenuController) {
constructor(private menu: MenuController) {
this.rootPage = Page1;
this.pages = [
@@ -76,3 +76,5 @@ class E2EApp {
return true;
}
}
ionicBootstrap(E2EPage);

View File

@@ -138,6 +138,6 @@
</ion-menu>
<ion-nav id="nav" [root]="rootPage" #content></ion-nav>
<ion-nav [root]="rootPage" #content></ion-nav>
<div [hidden]="isChangeDetecting()"></div>