mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
aside: fix an error
This commit is contained in:
@@ -77,7 +77,7 @@ new IonicComponent(Aside, {
|
||||
[instance => instance.side == 'top', gestures.TopAsideGesture],
|
||||
[instance => instance.side == 'bottom', gestures.BottomAsideGesture],
|
||||
[instance => instance.side == 'right', gestures.RightAsideGesture],
|
||||
[instance => instance.side == 'left', gestures.LeftAsideGesture]
|
||||
[instance => instance.side == 'left', gestures.LeftAsideGesture],
|
||||
],
|
||||
type: [
|
||||
[instance => instance.type == 'overlay', types.AsideTypeOverlay],
|
||||
@@ -86,4 +86,3 @@ new IonicComponent(Aside, {
|
||||
]
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import {NgElement, Component, Template} from 'angular2/angular2'
|
||||
import {IonicComponent} from 'ionic2/config/component'
|
||||
|
||||
@Component({
|
||||
selector: 'ion-item'
|
||||
@@ -16,6 +17,8 @@ import {NgElement, Component, Template} from 'angular2/angular2'
|
||||
})
|
||||
export class Item {
|
||||
constructor(@NgElement() ele:NgElement) {
|
||||
ele.domElement.classList.add('item')
|
||||
Item.config.invoke(this)
|
||||
}
|
||||
}
|
||||
|
||||
new IonicComponent(Item, {})
|
||||
|
||||
Reference in New Issue
Block a user