App annotation/mode attribute

This commit is contained in:
Adam Bradley
2015-07-08 14:05:37 -05:00
parent 9d2570d2e5
commit 40fc77b0b6
112 changed files with 625 additions and 1466 deletions

View File

@ -1,12 +1,7 @@
import {Component} from 'angular2/angular2';
import {IonicView} from 'ionic/ionic';
import {App} from 'ionic/ionic';
@Component({
selector: 'ion-app'
})
@IonicView({
@App({
templateUrl: 'main.html'
})
class IonicApp {
@ -17,7 +12,3 @@ class IonicApp {
console.log('Prev');
}
}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -1,12 +1,7 @@
import {Component} from 'angular2/angular2';
import {IonicView} from 'ionic/ionic';
import {App} from 'ionic/ionic';
@Component({
selector: 'ion-app'
})
@IonicView({
@App({
template: `
<ion-slides #slides loop>
<ion-slide style="background-color: blue">
@ -36,7 +31,3 @@ class IonicApp {
console.log('Prev');
}
}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}