mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
23 lines
509 B
JavaScript
23 lines
509 B
JavaScript
import {NgElement, Component, Template} from 'angular2/angular2'
|
|
|
|
@Component({
|
|
selector: 'ion-list'
|
|
})
|
|
@Template({
|
|
inline: `
|
|
<header class="list-header">
|
|
<content select="ion-list-header"></content>
|
|
</header>
|
|
<div class="list-content">
|
|
<content></content>
|
|
</div>`
|
|
<footer class="list-footer">
|
|
<content select="ion-list-footer"></content>
|
|
</footer>`
|
|
})
|
|
export class List {
|
|
constructor(@NgElement() ele:NgElement) {
|
|
ele.domElement.classList.add('list')
|
|
}
|
|
}
|