Support raw element enhancement

This commit is contained in:
Max Lynch
2015-05-04 13:27:39 -05:00
parent 615cd7eaeb
commit b4e66c3f6f
3 changed files with 27 additions and 11 deletions

View File

@ -2,7 +2,7 @@ import {NgElement, Decorator} from 'angular2/angular2'
import {IonicComponent} from 'ionic/config/component'
@Decorator({
selector: 'ion-button, [ion-button],.button',
selector: 'button, ion-button, [ion-button],.button',
})
export class Button {
constructor(
@ -13,5 +13,6 @@ export class Button {
}
}
new IonicComponent(Button, {
enhanceRawElement: true,
propClasses: ['primary', 'secondary', 'danger', 'light', 'stable', 'dark', 'block']
})