chore(build): rename ionic directory to src and update all references in the build process.

This commit is contained in:
Josh Thomas
2016-05-19 13:20:59 -05:00
parent 8470ae04ac
commit c8f760f080
595 changed files with 73 additions and 87 deletions

View File

@ -0,0 +1,53 @@
import {ViewChild} from '@angular/core';
import {App, Page, Slides} from '../../../../../ionic';
@App({
templateUrl: 'main.html'
})
class MyPage {
@ViewChild('mySlider') slider: Slides;
mySlideOptions = {
initialSlide: 1,
loop: false
};
ngAfterViewInit() {
}
onSlideChanged() {
let previousIndex = this.slider.getPreviousIndex();
let currentIndex = this.slider.getActiveIndex();
console.log("Previous index is", previousIndex, "Current index is", currentIndex);
}
goToPrevSlide() {
this.slider.slidePrev();
}
goToNextSlide() {
this.slider.slideNext();
}
goToSlide(index) {
this.slider.slideTo(index);
}
getIndex() {
let index = this.slider.getActiveIndex();
console.log("Current Index is", index);
}
getLength() {
let length = this.slider.length();
console.log("Current Length is", length);
}
}
@App({
template: `<ion-nav [root]="root"></ion-nav>`
})
class E2EApp {
root: any = MyPage;
}