Segment working again

This commit is contained in:
Max Lynch
2015-05-12 13:51:23 -05:00
parent 392e751ee5
commit aadb176a4e
5 changed files with 33 additions and 13 deletions

View File

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