mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
i put the break in changes
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
import {NgElement, Decorator} from 'angular2/angular2'
|
||||
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
||||
|
||||
import {IonicComponent} from 'ionic/config/component'
|
||||
|
||||
@Decorator({
|
||||
|
||||
@Directive({
|
||||
selector: 'ion-input'
|
||||
})
|
||||
export class Input {
|
||||
constructor(
|
||||
@NgElement() ngElement:NgElement
|
||||
) {
|
||||
this.domElement = ngElement.domElement
|
||||
constructor() {
|
||||
//this.config = Button.config.invoke(this)
|
||||
console.log('INPUT');
|
||||
}
|
||||
}
|
||||
new IonicComponent(Input, {
|
||||
})
|
||||
// new IonicComponent(Input, {
|
||||
// })
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
import {NgElement, Decorator} from 'angular2/angular2'
|
||||
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
||||
|
||||
import {IonicComponent} from 'ionic/config/component'
|
||||
|
||||
@Decorator({
|
||||
|
||||
@Directive({
|
||||
selector: 'ion-label'
|
||||
})
|
||||
export class Label {
|
||||
constructor(
|
||||
@NgElement() ngElement:NgElement
|
||||
) {
|
||||
this.domElement = ngElement.domElement
|
||||
constructor() {
|
||||
}
|
||||
}
|
||||
new IonicComponent(Label, {
|
||||
})
|
||||
// new IonicComponent(Label, {
|
||||
// })
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
import {Component, View, bootstrap} from 'angular2/angular2'
|
||||
import {bootstrap} from 'angular2/angular2'
|
||||
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
||||
import {View} from 'angular2/src/core/annotations_impl/view';
|
||||
|
||||
import {FormBuilder, Validators, FormDirectives, ControlGroup} from 'angular2/forms';
|
||||
//import {Button, Switch, Form, List, Label, Item, Input, Content} from 'ionic/ionic';
|
||||
import {IONIC_DIRECTIVES} from 'ionic/ionic'
|
||||
|
||||
console.log([FormDirectives].concat(IONIC_DIRECTIVES));
|
||||
|
||||
@Component({ selector: '[ion-app]' })
|
||||
@Component({ selector: 'ion-app' })
|
||||
@View({
|
||||
templateUrl: 'main.html',
|
||||
directives: [FormDirectives].concat(IONIC_DIRECTIVES)
|
||||
@@ -26,4 +29,7 @@ class IonicApp {
|
||||
}
|
||||
}
|
||||
|
||||
bootstrap(IonicApp)
|
||||
|
||||
export function main() {
|
||||
bootstrap(IonicApp);
|
||||
}
|
||||
Reference in New Issue
Block a user