mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
a swipe back named desire
This commit is contained in:
@ -2,23 +2,27 @@ 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 {SwipeHandle} from './swipe-handle';
|
||||
import {NavItem} from '../nav/nav-item';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'ion-content',
|
||||
// hostProperties: {
|
||||
// contentClass: 'class.content'
|
||||
// }
|
||||
selector: 'ion-content'
|
||||
})
|
||||
@View({
|
||||
template: `
|
||||
<div class="scroll-content">
|
||||
<content></content>
|
||||
</div>`
|
||||
</div>
|
||||
<swipe-handle [hidden]="hideSwipeHandle"></swipe-handle>`,
|
||||
directives: [SwipeHandle]
|
||||
})
|
||||
export class Content {
|
||||
constructor(elementRef: ElementRef) {
|
||||
this.domElement = elementRef.domElement;
|
||||
//this.contentClass = true;
|
||||
console.log('Content!');
|
||||
constructor(navItem: NavItem) {
|
||||
this.navItem = navItem;
|
||||
}
|
||||
|
||||
get hideSwipeHandle() {
|
||||
return !this.navItem.enableBack;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user