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,7 +1,8 @@
import {App, Page, ActionSheet, Loading, NavController, ViewController, Platform} from '../../../../../src';
import {Component} from '@angular/core';
import {ionicBootstrap, ActionSheet, Loading, NavController, ViewController, Platform} from '../../../../../src';
@Page({
@Component({
templateUrl: 'main.html'
})
class E2EPage {
@ -185,7 +186,7 @@ class E2EPage {
}
}
@Page({
@Component({
template: `
<ion-navbar *navbar>
<ion-title>Page 2</ion-title>
@ -215,7 +216,7 @@ class Page2 {
}
}
@Page({
@Component({
template: `
<ion-navbar *navbar>
<ion-title>Page 3</ion-title>
@ -227,11 +228,13 @@ class Page3 {
constructor(private nav: NavController, private platform: Platform) {}
}
@App({
@Component({
template: '<ion-nav [root]="root"></ion-nav>'
})
class E2EApp {
root = E2EPage;
}
ionicBootstrap(E2EApp);
document.body.innerHTML += '<link href="styles.css" rel="stylesheet">'

View File

@ -1,7 +1,8 @@
import {App, Page, ActionSheet, Loading, NavController, ViewController, Platform} from '../../../../../src';
import {Component} from '@angular/core';
import {ionicBootstrap, ActionSheet, Loading, NavController, ViewController, Platform} from '../../../../../src';
@Page({
@Component({
templateUrl: 'main.html'
})
class E2EPage {
@ -35,7 +36,7 @@ class E2EPage {
}
@Page({
@Component({
template: `
<ion-navbar *navbar>
<ion-title>Page 2</ion-title>
@ -47,7 +48,7 @@ class Page2 {
constructor(private nav: NavController, private platform: Platform) {}
}
@Page({
@Component({
template: `
<ion-tabs>
<ion-tab tabTitle="Plain List" tabIcon="star" [root]="root1"></ion-tab>
@ -66,9 +67,11 @@ export class TabsPage {
}
}
@App({
@Component({
template: '<ion-nav [root]="root"></ion-nav>'
})
class E2EApp {
root = TabsPage;
}
ionicBootstrap(E2EApp);