mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
25 lines
456 B
JavaScript
25 lines
456 B
JavaScript
import {
|
|
NgElement,
|
|
Component,
|
|
View as NgView,
|
|
} from 'angular2/angular2';
|
|
|
|
@Component({
|
|
selector: 'ion-content'
|
|
})
|
|
@NgView({
|
|
template: `
|
|
<div class="scroll-content">
|
|
<content></content>
|
|
</div>`
|
|
})
|
|
export class Content {
|
|
constructor(
|
|
@NgElement() element:NgElement
|
|
) {
|
|
console.log('constructing content', element.domElement);
|
|
this.domElement = element.domElement;
|
|
this.domElement.classList.add('content');
|
|
}
|
|
}
|