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, Page, Slides} from '../../../../../src';
import {Component, ViewChild} from '@angular/core';
import {ionicBootstrap, Slides} from '../../../../../src';
@App({
@Component({
templateUrl: 'main.html'
})
class MyPage {
@ -12,10 +12,6 @@ class MyPage {
loop: false
};
ngAfterViewInit() {
}
onSlideChanged() {
let previousIndex = this.slider.getPreviousIndex();
let currentIndex = this.slider.getActiveIndex();
@ -45,9 +41,12 @@ class MyPage {
}
}
@App({
@Component({
template: `<ion-nav [root]="root"></ion-nav>`
})
class E2EApp {
root: any = MyPage;
}
ionicBootstrap(E2EApp);