rename IonicComponent stuff

This commit is contained in:
Adam Bradley
2015-06-18 19:01:00 -05:00
parent 6978a5b2fb
commit 8664566f48
15 changed files with 34 additions and 33 deletions

View File

@ -1,7 +1,8 @@
import { ElementRef} from 'angular2/angular2'
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
import {IonicComponent} from 'ionic/config/component'
import {IonicComponent_OLD} from 'ionic/config/component'
@Directive({
selector: 'button, ion-button, [ion-button],.button',
@ -9,13 +10,12 @@ import {IonicComponent} from 'ionic/config/component'
export class Button {
constructor(
elementRef: ElementRef
//@NgElement() ngElement:NgElement
) {
this.domElement = elementRef.domElement;
this.config = Button.config.invoke(this);
}
}
new IonicComponent(Button, {
new IonicComponent_OLD(Button, {
enhanceRawElement: true,
propClasses: ['primary', 'secondary', 'danger', 'light', 'stable', 'dark', 'block', 'clear', 'full', 'icon']
})