mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 21:15:24 +08:00
view
This commit is contained in:
24
src/components/view/view.js
Normal file
24
src/components/view/view.js
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
import {NgElement, Component, Template} from 'angular2/angular2'
|
||||||
|
import {ToolBar} from '../toolbar/toolbar'
|
||||||
|
import {Ion} from '../ion'
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'ion-view',
|
||||||
|
bind: {
|
||||||
|
title: 'view-title'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
@Template({
|
||||||
|
inline: `
|
||||||
|
<ion-toolbar>
|
||||||
|
</ion-toolbar>
|
||||||
|
<div class="container">
|
||||||
|
<content></content>
|
||||||
|
</div>`,
|
||||||
|
directives: [ToolBar]
|
||||||
|
})
|
||||||
|
export class View extends Ion {
|
||||||
|
constructor(@NgElement() ele:NgElement) {
|
||||||
|
ele.domElement.classList.add('view')
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user