mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
Support raw element enhancement
This commit is contained in:
@ -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']
|
||||
})
|
||||
|
Reference in New Issue
Block a user