new bootstrap

This commit is contained in:
Adam Bradley
2015-06-18 11:59:52 -05:00
parent df63eb9fe8
commit 9b80cffedb
66 changed files with 793 additions and 1289 deletions

View File

@@ -1,19 +1,17 @@
import {bootstrap, NgSwitch, NgSwitchWhen} from 'angular2/angular2'
import {NgSwitch, NgSwitchWhen} from 'angular2/angular2'
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
import {View} from 'angular2/src/core/annotations_impl/view';
import {Segment, SegmentButton, Content, Button} from 'ionic/ionic';
import {FormBuilder, Validators, formDirectives, ControlGroup} from 'angular2/forms';
//import {IONIC_DIRECTIVES} from 'ionic/ionic'
console.log('Loaded', formDirectives, Segment, SegmentButton, Content, Button, NgSwitch, NgSwitchWhen);
@Component({ selector: 'ion-app' })
@Component({ selector: 'ion-view' })
@View({
templateUrl: 'main.html',
directives: [formDirectives].concat([Segment, SegmentButton, Content, Button, NgSwitch, NgSwitchWhen])
})
class IonicApp {
export default class IonicApp {
constructor() {
var fb = new FormBuilder();
@@ -27,8 +25,3 @@ class IonicApp {
event.preventDefault();
}
}
export function main() {
bootstrap(IonicApp);
}