Files
2015-05-30 12:46:20 -05:00

20 lines
666 B
JavaScript

import {ElementRef} from 'angular2/angular2'
import {Component} from 'angular2/src/core/annotations_impl/annotations';
import {View} from 'angular2/src/core/annotations_impl/view';
@Component({
selector: 'ion-content'
})
@View({
template: `<div class="scroll-content"><content></content></div>`
})
export class Content {
constructor(elementRef: ElementRef) {
// TODO(maxlynch): we need this domElement for things like aside, etc.
// but we should be able to stamp out this behavior with a base IonicComponent
// or something, so all elements have a domElement reference or a getElement() method
this.domElement = elementRef.domElement;
}
}