preventdefault swipeback

Closes #40
This commit is contained in:
Adam Bradley
2015-05-31 20:38:44 -05:00
parent 45cb7d7189
commit f554cc51df
4 changed files with 26 additions and 7 deletions

View File

@ -40,6 +40,14 @@ export class Nav extends NavBase {
width() {
return this.domElement.offsetWidth;
}
get swipeBackEnabled() {
let activeItem = this.getActive();
if (activeItem) {
return activeItem.enableBack;
}
return false;
}
}
new IonicComponent(Nav, {});