test updates

This commit is contained in:
Adam Bradley
2015-06-19 15:57:35 -05:00
parent 92919c6e48
commit f1a61cb4d5
45 changed files with 215 additions and 88 deletions

View File

@ -12,7 +12,7 @@ let scale = 0.6;
@View({
templateUrl: 'main.html'
})
export default class IonicApp {
class IonicApp {
constructor() {
this.animation = new Animation();
@ -75,3 +75,7 @@ export default class IonicApp {
}
}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -141,7 +141,7 @@ class PostDetail {
templateUrl: 'pages/splash.html',
directives: [Content]
})
export default class SplashPage {
class SplashPage {
constructor(nav: NavController) {
this.nav = nav;
window.nav = nav;
@ -151,3 +151,7 @@ export default class SplashPage {
}
}
export function main(ionicBootstrap) {
ionicBootstrap(SplashPage);
}

View File

@ -30,7 +30,7 @@ export class Story {
templateUrl: './pages/top.html',
directives: [NavbarTemplate, Navbar, Content, NgFor, List, Story, Item]
})
export default class HNTopStories {
class HNTopStories {
constructor(
nav: NavController
) {
@ -91,3 +91,7 @@ export default class HNTopStories {
});
*/
}
export function main(ionicBootstrap) {
ionicBootstrap(HNTopStories);
}

View File

@ -35,7 +35,7 @@ class AppPage {
directives: [Nav, Aside, List, Item, ParallaxEffect],
templateUrl: 'main.html'
})
export default class IonicApp {
class IonicApp {
constructor() {
this.firstPage = AppPage
@ -100,3 +100,7 @@ export class ParallaxEffect {
list.style['transform'] = 'translate3d(' + x + 'px, ' + y + 'px, 0) scale(' + scale + ')';
}
}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -14,7 +14,7 @@ import {dom} from 'ionic/util';
templateUrl: 'main.html',
directives: [formDirectives, Nav, Slides, Slide, Content, List, Item, NgFor, ParallaxEffect]
})
export default class IonicApp {
class IonicApp {
constructor() {
this.items = [];
@ -57,3 +57,7 @@ export class ParallaxEffect {
})
}
}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -1,4 +1,4 @@
import {bootstrap, QueryList, ElementRef, NgFor, NgIf} from 'angular2/angular2'
import {QueryList, ElementRef, NgFor, NgIf} from 'angular2/angular2'
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
import {Descendant} from 'angular2/src/core/annotations_impl/visibility';
import {View} from 'angular2/src/core/annotations_impl/view';
@ -32,7 +32,7 @@ console.log('Loaded', Nav, NgFor, NgIf, Aside, List, ViewContainer, Item, Conten
templateUrl: 'main.html',
directives: [Nav, NgFor, NgIf, Aside, List, ViewContainer, Item, Content]
})
export default class IonicApp {
class IonicApp {
constructor(elementRef: ElementRef) {//, @Query(Aside) nav: QueryList) {//, @Descendant() aside: Aside) {
Ionic.setRootElementRef(elementRef);
@ -65,3 +65,7 @@ export default class IonicApp {
})
}
}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -102,7 +102,7 @@ export class FeedPage {
templateUrl: 'main.html',
directives: [formDirectives, Nav, Slides, Slide, Content, List, Item]
})
export default class IonicApp {
class IonicApp {
constructor() {
this.feedPage = FeedPage;
console.log('IonicApp Start');
@ -153,3 +153,7 @@ export class HeartModal {
this.modalRef.close();
}
}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -6,8 +6,12 @@ import {View} from 'angular2/src/core/annotations_impl/view';
@View({
templateUrl: 'main.html'
})
export default class IonicApp {
class IonicApp {
constructor() {
console.log('IonicApp Start')
}
}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -1,4 +1,3 @@
import {bootstrap} from 'angular2/angular2'
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
import {View} from 'angular2/src/core/annotations_impl/view';
@ -18,6 +17,6 @@ class IonicApp {
}
}
export function main() {
bootstrap(IonicApp);
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}