mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
29 lines
585 B
JavaScript
29 lines
585 B
JavaScript
import {Renderer, ElementRef} from 'angular2/angular2'
|
|
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
|
import {View} from 'angular2/src/core/annotations_impl/view';
|
|
|
|
import {IonicComponent} from 'ionic/config/component'
|
|
|
|
|
|
@Component({
|
|
selector: 'ion-list'
|
|
})
|
|
@View({
|
|
template: `<content></content>`
|
|
})
|
|
export class List {
|
|
constructor() {
|
|
|
|
}
|
|
constructor(
|
|
elementRef: ElementRef
|
|
) {
|
|
this.domElement = elementRef.domElement;
|
|
this.config = List.config.invoke(this);
|
|
}
|
|
}
|
|
|
|
new IonicComponent(List, {
|
|
propClasses: ['inset']
|
|
})
|