Skip to content

Commit

Permalink
fix(angular): router-outlet uses stack by default
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Apr 10, 2018
1 parent fd5c957 commit 5c91101
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion angular/src/directives/navigation/ion-router-outlet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export class IonRouterOutlet implements OnDestroy, OnInit {
) {
this.name = name || PRIMARY_OUTLET;
parentContexts.onChildOutletCreated(this.name, this as any);
this.stackCtrl = new StackController(stack != null, elementRef.nativeElement, router, this.navCtrl);
const hasStack = stack !== 'false' || stack !== false;
this.stackCtrl = new StackController(hasStack, elementRef.nativeElement, router, this.navCtrl);
}

ngOnDestroy(): void {
Expand Down

0 comments on commit 5c91101

Please sign in to comment.