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,64 @@
import {App, Page, NavController} from '../../../../../ionic';
@App({
template: '<ion-nav [root]="rootPage"></ion-nav>'
})
class MyApp {
rootPage;
constructor() {
this.rootPage = IntroPage;
}
}
@Page({
templateUrl: 'main.html'
})
class IntroPage {
continueText: string = "Skip";
startingIndex: number = 1;
mySlideOptions;
constructor(private nav: NavController) {
this.mySlideOptions = {
paginationClickable: true,
lazyLoading: true,
preloadImages: false,
initialSlide: this.startingIndex
};
}
onSlideChanged(slider) {
console.log("Slide changed", slider);
}
onSlideChangeStart(slider) {
console.log("Slide change start", slider);
slider.isEnd ? this.continueText = "Continue" : this.continueText = "Skip";
}
onSlideMove(slider) {
console.log("Slide move", slider);
}
skip() {
this.nav.push(MainPage);
}
}
@Page({
template: `
<ion-navbar *navbar>
<ion-title>Slides</ion-title>
</ion-navbar>
<ion-content padding>
<h1>Another Page</h1>
</ion-content>
`
})
class MainPage {
}