fix(router-outlet): fix stack attribute detection (#14921)

(stack !== 'false' OR stack !== false) will always be TRUE. That OR should be an AND.
This commit is contained in:
Ken Sodemann
2018-07-28 06:43:49 -05:00
committed by Manu MA
parent 0fb3c62c71
commit 16e992a098

View File

@ -32,7 +32,7 @@ export class IonRouterOutlet implements OnDestroy, OnInit {
) {
this.name = name || PRIMARY_OUTLET;
parentContexts.onChildOutletCreated(this.name, this as any);
const hasStack = stack !== 'false' || stack !== false;
const hasStack = stack !== 'false' && stack !== false;
this.stackCtrl = new StackController(hasStack, elementRef.nativeElement, router, this.navCtrl);
}