-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(angular): nav controller can pop views after leaving tabs outlet (#…
- Loading branch information
1 parent
2969169
commit 725b13f
Showing
11 changed files
with
159 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
angular/test/base/src/app/tabs-global/tabs-global-routing.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { NgModule } from "@angular/core"; | ||
import { RouterModule } from "@angular/router"; | ||
import { TabsGlobalComponent } from "./tabs-global.component"; | ||
|
||
@NgModule({ | ||
imports: [ | ||
RouterModule.forChild([ | ||
{ | ||
path: '', | ||
component: TabsGlobalComponent | ||
} | ||
]) | ||
], | ||
exports: [RouterModule] | ||
}) | ||
export class TabsGlobalRoutingModule { } |
17 changes: 17 additions & 0 deletions
17
angular/test/base/src/app/tabs-global/tabs-global.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<ion-header> | ||
<ion-toolbar> | ||
<ion-buttons slot="start"> | ||
<ion-back-button></ion-back-button> | ||
</ion-buttons> | ||
|
||
<ion-title> | ||
Global Page | ||
</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content> | ||
<ion-content> | ||
<ion-button id="goto-prev-pop" (click)="navCtrl.pop()">Go To Previous</ion-button> | ||
</ion-content> | ||
</ion-content> |
17 changes: 17 additions & 0 deletions
17
angular/test/base/src/app/tabs-global/tabs-global.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Component } from "@angular/core"; | ||
import { NavController } from "@ionic/angular"; | ||
|
||
/** | ||
* This component is used in conjunction with a tabs router-outlet, | ||
* to validate the behavior of different routing APIs (e.g. NavController) | ||
* when leaving and re-entering a router-outlet. | ||
*/ | ||
@Component({ | ||
selector: 'app-tabs-global', | ||
templateUrl: 'tabs-global.component.html' | ||
}) | ||
export class TabsGlobalComponent { | ||
|
||
constructor(public navCtrl: NavController) { } | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
angular/test/base/src/app/tabs-global/tabs-global.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { NgModule } from "@angular/core"; | ||
import { IonicModule } from "@ionic/angular"; | ||
import { TabsGlobalRoutingModule } from "./tabs-global-routing.module"; | ||
import { TabsGlobalComponent } from "./tabs-global.component"; | ||
|
||
@NgModule({ | ||
imports: [ | ||
IonicModule, | ||
TabsGlobalRoutingModule | ||
], | ||
declarations: [TabsGlobalComponent] | ||
}) | ||
export class TabsGlobalModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters