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