1- import { ComponentRef , ComponentFactoryResolver , ElementRef , EventEmitter , NgZone , ReflectiveInjector , Renderer , ViewContainerRef } from '@angular/core' ;
1+ import { ComponentRef , Input , ComponentFactoryResolver , ElementRef , EventEmitter , NgZone , ReflectiveInjector , Renderer , ViewContainerRef } from '@angular/core' ;
22
33import { AnimationOptions } from '../animations/animation' ;
44import { App } from '../components/app/app' ;
@@ -9,7 +9,7 @@ import { setZIndex } from './nav-util';
99import { DeepLinker } from './deep-linker' ;
1010import { DomController } from '../platform/dom-controller' ;
1111import { GestureController } from '../gestures/gesture-controller' ;
12- import { isBlank , isNumber , isPresent , assert , removeArrayItem } from '../util/util' ;
12+ import { isBlank , isNumber , isPresent , isTrueProperty , assert , removeArrayItem } from '../util/util' ;
1313import { isViewController , ViewController } from './view-controller' ;
1414import { Ion } from '../components/ion' ;
1515import { Keyboard } from '../platform/keyboard' ;
@@ -49,6 +49,15 @@ export class NavControllerBase extends Ion implements NavController {
4949
5050 id : string ;
5151
52+ @Input ( )
53+ get swipeBackEnabled ( ) : boolean {
54+ return this . _sbEnabled ;
55+ }
56+ set swipeBackEnabled ( val : boolean ) {
57+ this . _sbEnabled = isTrueProperty ( val ) ;
58+ this . _swipeBackCheck ( ) ;
59+ }
60+
5261 constructor (
5362 public parent : any ,
5463 public _app : App ,
0 commit comments