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

@ -10,7 +10,7 @@ import {ActionMenu} from 'ionic/components/action-menu/action-menu';
templateUrl: 'main.html', templateUrl: 'main.html',
directives: [Content] directives: [Content]
}) })
export default class IonicApp { class IonicApp {
openMenu() { openMenu() {
console.log('Opening ActionMenu') console.log('Opening ActionMenu')
@ -41,3 +41,7 @@ export default class IonicApp {
} }
} }
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

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

View File

@ -12,7 +12,7 @@ let scale = 0.6;
@View({ @View({
templateUrl: 'main.html' templateUrl: 'main.html'
}) })
export default class IonicApp { class IonicApp {
constructor() { constructor() {
this.animation = new Animation(); 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', templateUrl: 'pages/splash.html',
directives: [Content] directives: [Content]
}) })
export default class SplashPage { class SplashPage {
constructor(nav: NavController) { constructor(nav: NavController) {
this.nav = nav; this.nav = nav;
window.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', templateUrl: './pages/top.html',
directives: [NavbarTemplate, Navbar, Content, NgFor, List, Story, Item] directives: [NavbarTemplate, Navbar, Content, NgFor, List, Story, Item]
}) })
export default class HNTopStories { class HNTopStories {
constructor( constructor(
nav: NavController 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], directives: [Nav, Aside, List, Item, ParallaxEffect],
templateUrl: 'main.html' templateUrl: 'main.html'
}) })
export default class IonicApp { class IonicApp {
constructor() { constructor() {
this.firstPage = AppPage this.firstPage = AppPage
@ -100,3 +100,7 @@ export class ParallaxEffect {
list.style['transform'] = 'translate3d(' + x + 'px, ' + y + 'px, 0) scale(' + scale + ')'; 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', templateUrl: 'main.html',
directives: [formDirectives, Nav, Slides, Slide, Content, List, Item, NgFor, ParallaxEffect] directives: [formDirectives, Nav, Slides, Slide, Content, List, Item, NgFor, ParallaxEffect]
}) })
export default class IonicApp { class IonicApp {
constructor() { constructor() {
this.items = []; 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 {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
import {Descendant} from 'angular2/src/core/annotations_impl/visibility'; import {Descendant} from 'angular2/src/core/annotations_impl/visibility';
import {View} from 'angular2/src/core/annotations_impl/view'; 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', templateUrl: 'main.html',
directives: [Nav, NgFor, NgIf, Aside, List, ViewContainer, Item, Content] 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) { constructor(elementRef: ElementRef) {//, @Query(Aside) nav: QueryList) {//, @Descendant() aside: Aside) {
Ionic.setRootElementRef(elementRef); 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', templateUrl: 'main.html',
directives: [formDirectives, Nav, Slides, Slide, Content, List, Item] directives: [formDirectives, Nav, Slides, Slide, Content, List, Item]
}) })
export default class IonicApp { class IonicApp {
constructor() { constructor() {
this.feedPage = FeedPage; this.feedPage = FeedPage;
console.log('IonicApp Start'); console.log('IonicApp Start');
@ -153,3 +153,7 @@ export class HeartModal {
this.modalRef.close(); 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({ @View({
templateUrl: 'main.html' templateUrl: 'main.html'
}) })
export default class IonicApp { class IonicApp {
constructor() { constructor() {
console.log('IonicApp Start') 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 {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
import {View} from 'angular2/src/core/annotations_impl/view'; import {View} from 'angular2/src/core/annotations_impl/view';
@ -18,6 +17,6 @@ class IonicApp {
} }
} }
export function main() { export function main(ionicBootstrap) {
bootstrap(IonicApp); ionicBootstrap(IonicApp);
} }

View File

@ -11,4 +11,8 @@ import {Aside, List, Item, Content} from 'ionic/ionic';
directives: [Aside, Content, List, Item], directives: [Aside, Content, List, Item],
templateUrl: 'main.html' templateUrl: 'main.html'
}) })
export default class IonicApp {} class IonicApp {}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -4,7 +4,10 @@ import {View} from 'angular2/src/core/annotations_impl/view';
@Component({ selector: 'ion-view' }) @Component({ selector: 'ion-view' })
@View({ @View({
templateUrl: 'main.html', templateUrl: 'main.html'
directives: []
}) })
export default class IonicApp {} class IonicApp {}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -4,7 +4,10 @@ import {View} from 'angular2/src/core/annotations_impl/view';
@Component({ selector: 'ion-view' }) @Component({ selector: 'ion-view' })
@View({ @View({
templateUrl: 'main.html', templateUrl: 'main.html'
directives: []
}) })
export default class IonicApp {} class IonicApp {}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -4,7 +4,10 @@ import {View} from 'angular2/src/core/annotations_impl/view';
@Component({ selector: 'ion-view' }) @Component({ selector: 'ion-view' })
@View({ @View({
templateUrl: 'main.html', templateUrl: 'main.html'
directives: []
}) })
export default class IonicApp {} class IonicApp {}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -4,7 +4,10 @@ import {View} from 'angular2/src/core/annotations_impl/view';
@Component({ selector: 'ion-view' }) @Component({ selector: 'ion-view' })
@View({ @View({
templateUrl: 'main.html', templateUrl: 'main.html'
directives: []
}) })
export default class IonicApp {} class IonicApp {}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -4,7 +4,10 @@ import {View} from 'angular2/src/core/annotations_impl/view';
@Component({ selector: 'ion-view' }) @Component({ selector: 'ion-view' })
@View({ @View({
templateUrl: 'main.html', templateUrl: 'main.html'
directives: []
}) })
export default class IonicApp {} class IonicApp {}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -4,7 +4,10 @@ import {View} from 'angular2/src/core/annotations_impl/view';
@Component({ selector: 'ion-view' }) @Component({ selector: 'ion-view' })
@View({ @View({
templateUrl: 'main.html', templateUrl: 'main.html'
directives: []
}) })
export default class IonicApp {} class IonicApp {}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -4,7 +4,10 @@ import {View} from 'angular2/src/core/annotations_impl/view';
@Component({ selector: 'ion-view' }) @Component({ selector: 'ion-view' })
@View({ @View({
templateUrl: 'main.html', templateUrl: 'main.html'
directives: []
}) })
export default class IonicApp {} class IonicApp {}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -10,4 +10,8 @@ import {List} from 'ionic/components/list/list';
templateUrl: 'main.html', templateUrl: 'main.html',
directives: [Content, List] directives: [Content, List]
}) })
export default class IonicApp {} class IonicApp {}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -10,7 +10,7 @@ import {Checkbox, Content, List} from 'ionic/ionic';
templateUrl: 'main.html', templateUrl: 'main.html',
directives: [Checkbox, List, Content] directives: [Checkbox, List, Content]
}) })
export default class IonicApp { class IonicApp {
constructor() { constructor() {
// var fb = new FormBuilder(); // var fb = new FormBuilder();
// this.form = fb.group({ // this.form = fb.group({
@ -24,3 +24,6 @@ export default class IonicApp {
} }
} }
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -14,7 +14,7 @@ import {Item} from 'ionic/components/item/item';
templateUrl: 'main.html', templateUrl: 'main.html',
directives: [Content, Icon, Checkbox, List, Item, NgFor] directives: [Content, Icon, Checkbox, List, Item, NgFor]
}) })
export default class IonicApp { class IonicApp {
constructor() { constructor() {
console.log('IonicApp Start') console.log('IonicApp Start')
@ -29,3 +29,7 @@ export default class IonicApp {
}) })
} }
} }
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -1,4 +1,4 @@
import {bootstrap, NgFor, ProtoViewRef, ViewContainerRef} from 'angular2/angular2' import {NgFor, ProtoViewRef, ViewContainerRef} from 'angular2/angular2'
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations'; import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
import {View} from 'angular2/src/core/annotations_impl/view'; import {View} from 'angular2/src/core/annotations_impl/view';
import {Parent} from 'angular2/src/core/annotations_impl/visibility'; import {Parent} from 'angular2/src/core/annotations_impl/visibility';
@ -20,7 +20,6 @@ class IonicApp {
} }
} }
export function main(ionicBootstrap) {
export function main() { ionicBootstrap(IonicApp);
bootstrap(IonicApp);
} }

View File

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

View File

@ -13,8 +13,12 @@ import {ItemPrimarySwipeButtons} from 'ionic/components/item/item-swipe-buttons'
templateUrl: 'main.html', templateUrl: 'main.html',
directives: [Item, List, NgFor, ItemPrimarySwipeButtons] directives: [Item, List, NgFor, ItemPrimarySwipeButtons]
}) })
export default class IonicApp { class IonicApp {
constructor() { constructor() {
this.items = [1, 2, 3, 4, 5] this.items = [1, 2, 3, 4, 5]
} }
} }
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -13,8 +13,12 @@ import {ItemPrimarySwipeButtons} from 'ionic/components/item/item-swipe-buttons'
templateUrl: 'main.html', templateUrl: 'main.html',
directives: [Item, List, NgFor, ItemPrimarySwipeButtons] directives: [Item, List, NgFor, ItemPrimarySwipeButtons]
}) })
export default class IonicApp { class IonicApp {
constructor() { constructor() {
this.items = [1, 2, 3, 4, 5] this.items = [1, 2, 3, 4, 5]
} }
} }
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -10,5 +10,9 @@ import {Layout} from 'ionic/components/layout/layout';
templateUrl: 'main.html', templateUrl: 'main.html',
directives: [Content, Layout] directives: [Content, Layout]
}) })
export default class IonicApp {} class IonicApp {}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -9,4 +9,8 @@ import {Content, List, Item} from 'ionic/ionic';
templateUrl: 'main.html', templateUrl: 'main.html',
directives: [Content, List, Item] directives: [Content, List, Item]
}) })
export default class IonicApp {} class IonicApp {}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -11,7 +11,7 @@ import {Content, List, Item} from 'ionic/ionic';
templateUrl: 'main.html', templateUrl: 'main.html',
directives: [Content, List, Item, ItemCellTemplate, NgFor] directives: [Content, List, Item, ItemCellTemplate, NgFor]
}) })
export default class IonicApp { class IonicApp {
constructor() { constructor() {
console.log('IonicApp Start') console.log('IonicApp Start')
@ -42,3 +42,7 @@ export class ItemCellTemplate {
list.setItemTemplate(this); list.setItemTemplate(this);
} }
} }
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -15,7 +15,7 @@ import {NavController, NavParams, NavbarTemplate, Navbar} from 'ionic/ionic';
templateUrl: 'main.html', templateUrl: 'main.html',
directives: [Content, List, Item] directives: [Content, List, Item]
}) })
export default class IonicApp { class IonicApp {
openModal() { openModal() {
console.log('Opening modal'); console.log('Opening modal');
Modal.open(ContactModal); Modal.open(ContactModal);
@ -118,3 +118,7 @@ export class ModalSecondPage {
} }
} }
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -7,4 +7,8 @@ import {View} from 'angular2/src/core/annotations_impl/view';
templateUrl: 'main.html', templateUrl: 'main.html',
directives: [] directives: []
}) })
export default class IonicApp {} class IonicApp {}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

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

View File

@ -10,7 +10,7 @@ import {RadioGroup, RadioButton, Content, List} from 'ionic/ionic';
templateUrl: 'main.html', templateUrl: 'main.html',
directives: [RadioGroup, RadioButton, List, Content] directives: [RadioGroup, RadioButton, List, Content]
}) })
export default class IonicApp { class IonicApp {
constructor() { constructor() {
console.log('IonicApp Start') console.log('IonicApp Start')
@ -20,3 +20,7 @@ export default class IonicApp {
// }); // });
} }
} }
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -23,7 +23,7 @@ function randomTitle() {
templateUrl: 'main.html', templateUrl: 'main.html',
directives: [formDirectives].concat([Content, List, Item, SearchBar, NgFor]) directives: [formDirectives].concat([Content, List, Item, SearchBar, NgFor])
}) })
export default class IonicApp { class IonicApp {
constructor() { constructor() {
console.log('IonicApp Start') console.log('IonicApp Start')
@ -56,3 +56,6 @@ export default class IonicApp {
} }
} }
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -11,7 +11,7 @@ import {FormBuilder, Validators, formDirectives, ControlGroup} from 'angular2/fo
templateUrl: 'main.html', templateUrl: 'main.html',
directives: [formDirectives].concat([Segment, SegmentButton, Content, NgSwitch, NgSwitchWhen]) directives: [formDirectives].concat([Segment, SegmentButton, Content, NgSwitch, NgSwitchWhen])
}) })
export default class IonicApp { class IonicApp {
constructor() { constructor() {
var fb = new FormBuilder(); var fb = new FormBuilder();
@ -25,3 +25,7 @@ export default class IonicApp {
event.preventDefault(); event.preventDefault();
} }
} }
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -11,7 +11,7 @@ import {Slides, Slide, SlidePager, List, Item, Content} from 'ionic/ionic';
directives: [Slides, Slide, SlidePager, Content, List, Item], directives: [Slides, Slide, SlidePager, Content, List, Item],
templateUrl: 'main.html' templateUrl: 'main.html'
}) })
export default class IonicApp { class IonicApp {
next() { next() {
console.log('Next'); console.log('Next');
} }
@ -19,3 +19,7 @@ export default class IonicApp {
console.log('Prev'); console.log('Prev');
} }
} }
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -30,7 +30,7 @@ import {Slides, Slide, SlidePager, List, Item, Content} from 'ionic/ionic';
</div> </div>
` `
}) })
export default class IonicApp { class IonicApp {
next() { next() {
console.log('Next'); console.log('Next');
} }
@ -38,3 +38,7 @@ export default class IonicApp {
console.log('Prev'); console.log('Prev');
} }
} }
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -10,7 +10,7 @@ import {Switch, Content, List} from 'ionic/ionic';
templateUrl: 'main.html', templateUrl: 'main.html',
directives: [FormDirectives].concat([Switch, List, Content]) directives: [FormDirectives].concat([Switch, List, Content])
}) })
export default class IonicApp { class IonicApp {
constructor() { constructor() {
var fb = new FormBuilder(); var fb = new FormBuilder();
@ -26,3 +26,7 @@ export default class IonicApp {
event.preventDefault(); event.preventDefault();
} }
} }
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -17,9 +17,9 @@ import {IonicComponent} from '../../config/component';
@IonicComponent(Tabs) @IonicComponent(Tabs)
@View({ @View({
template: ` template: `
<nav class="navbar-container tab-bar-container"> <nav class="tab-bar-container">
<div class="tab-bar" role="tablist"> <div class="tab-bar" role="tablist">
<button *ng-for="#t of tabs" class="tab-button" role="tab"> <button *ng-for="#t of tabs" [tab]="t" class="tab-button" role="tab">
<icon [name]="t.tabIcon" class="tab-button-icon"></icon> <icon [name]="t.tabIcon" class="tab-button-icon"></icon>
<span class="tab-button-text">{{t.tabTitle}}</span> <span class="tab-button-text">{{t.tabTitle}}</span>
</button> </button>

View File

@ -54,6 +54,7 @@ ion-tab {
} }
.tab-bar-container { .tab-bar-container {
position: relative;
order: $flex-order-tab-bar-bottom; order: $flex-order-tab-bar-bottom;
} }
@ -68,7 +69,7 @@ ion-tab {
background: $tab-bar-background-color; background: $tab-bar-background-color;
} }
.tab-button { button.tab-button {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
@ -88,13 +89,13 @@ ion-tab {
background: none; background: none;
} }
[tab-bar-icons="bottom"] > .tab-bar-container .tab-button { [tab-bar-icons="bottom"] > .tab-bar-container button.tab-button {
.tab-button-icon { .tab-button-icon {
order: 10; order: 10;
} }
} }
[tab-bar-icons="left"] > .tab-bar-container .tab-button { [tab-bar-icons="left"] > .tab-bar-container button.tab-button {
flex-direction: row; flex-direction: row;
.tab-button-icon { .tab-button-icon {
@ -103,7 +104,7 @@ ion-tab {
} }
} }
[tab-bar-icons="right"] > .tab-bar-container .tab-button { [tab-bar-icons="right"] > .tab-bar-container button.tab-button {
flex-direction: row; flex-direction: row;
.tab-button-icon { .tab-button-icon {
@ -130,10 +131,10 @@ ion-tab {
display: none; display: none;
} }
.tab-button:hover { button.tab-button:hover {
opacity: 0.6; opacity: 0.6;
} }
.tab-button[aria-selected="true"] { button.tab-button[aria-selected="true"] {
color: red; color: red;
} }

View File

@ -17,7 +17,7 @@ import {Tabs, Tab, NavController, NavbarTemplate, Navbar, Content} from 'ionic/i
'</ion-content>', '</ion-content>',
directives: [NavbarTemplate, Navbar, Content] directives: [NavbarTemplate, Navbar, Content]
}) })
export default class SignInPage { class IonicApp {
constructor(nav: NavController) { constructor(nav: NavController) {
this.nav = nav; this.nav = nav;
} }
@ -183,3 +183,7 @@ class Tab2Page3 {
this.nav = nav; this.nav = nav;
} }
} }
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}

View File

@ -11,8 +11,8 @@ import * as util from 'ionic/util'
templateUrl: 'main.html', templateUrl: 'main.html',
directives: [Tabs, Tab, Content] directives: [Tabs, Tab, Content]
}) })
export default class IonicApp { class IonicApp {}
constructor() {
console.log('IonicApp Start'); export function main(ionicBootstrap) {
} ionicBootstrap(IonicApp);
} }

View File

@ -9,8 +9,8 @@ import {Tabs, Tab} from 'ionic/ionic';
templateUrl: 'main.html', templateUrl: 'main.html',
directives: [Tabs, Tab] directives: [Tabs, Tab]
}) })
export default class IonicApp { class IonicApp {}
constructor() {
console.log('IonicApp Start') export function main(ionicBootstrap) {
} ionicBootstrap(IonicApp);
} }

View File

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

View File

@ -9,8 +9,8 @@ import {Tabs, Tab} from 'ionic/ionic';
templateUrl: 'main.html', templateUrl: 'main.html',
directives: [Tabs, Tab] directives: [Tabs, Tab]
}) })
export default class IonicApp { class IonicApp {}
constructor() {
console.log('IonicApp Start') export function main(ionicBootstrap) {
} ionicBootstrap(IonicApp);
} }