# Tabs navigation with nested pages

**URL:** <https://forum.ionicframework.com/t/tabs-navigation-with-nested-pages/185047>\
**Category:** Ionic Framework\
**Created:** [March 12, 2020, 8:36pm UTC](https://forum.ionicframework.com/t/tabs-navigation-with-nested-pages/185047 "2020-03-12T20:36:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ehboym](https://avatars.discourse-cdn.com/v4/letter/e/ccd318/32.png) [@ehboym](https://forum.ionicframework.com/u/ehboym)\
**Post date:** [March 12, 2020, 8:36pm UTC](https://forum.ionicframework.com/t/tabs-navigation-with-nested-pages/185047/1 "2020-03-12T20:36:11Z")

</div>

Hi,

Tying to build an APP with tabs and nested pages at each tab.  
I started with a "ionic start tabs --type=ionic-angular witch created a tabs APP but now I am tying to understand who to add sub-pages to each tab and navigate between the pages.

All the tutorials I have seen mention a file called " app-routing.module.ts" which does not exist in the file structure created by Ionic. and once I create that file these tutorials have inside that file an import of ‘@angular/router’ which renders an error saying that that module can not be found.

Do you know of a GOOD current tutorial which can explain who tab navigation in Ionic works and who to implement it ?

Any help will be appreciated

Erez

* * *

windows  
ionic -v == 6.2.0  
node --version == 12.16.1  
cordova -v == 9.0.0 (cordova-lib@9.0.1)  
ng --version == @angular-devkit/architect 0.900.5 (cli-only)  
@angular-devkit/build-optimizer 0.0.35  
@angular-devkit/core 9.0.5 (cli-only)  
@angular-devkit/schematics 9.0.5 (cli-only)  
@schematics/angular 9.0.5 (cli-only)  
@schematics/update 0.900.5 (cli-only)  
rxjs 5.5.11  
typescript 2.6.2  
webpack 3.12.0

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [March 12, 2020, 8:58pm UTC](https://forum.ionicframework.com/t/tabs-navigation-with-nested-pages/185047/2 "2020-03-12T20:58:07Z")

</div>

> [@ehboym](#):
>
> –type=ionic-angular

If you’re starting a new project, you want the `angular` type, not `ionic-angular`.

> [@ehboym](#):
>
> All the tutorials I have seen

I would strongly suggest sticking to authoritative documentation from Ionic and Angular here.

---

<div class="post-metadata">

**Author:** ![ehboym](https://avatars.discourse-cdn.com/v4/letter/e/ccd318/32.png) [@ehboym](https://forum.ionicframework.com/u/ehboym)\
**Post date:** [March 12, 2020, 9:20pm UTC](https://forum.ionicframework.com/t/tabs-navigation-with-nested-pages/185047/3 "2020-03-12T21:20:28Z")

</div>

thanks for the replay.

I tried both --type=angular and --type=ionic-angular no of them create a router module in the tabs app.

I started with a “authoritative documentation” the Angular documentation and the Ionic documentation. Again they describe a router module witch is not created by the ionic start command and when I try to add the missing files the @angular/router is not recognized.

I am not even shore that the Ionic document is current because the entire file structure created by the Ionic start is different than the file structure described in the Ionic documentation.

Also the Ionic documentation describe only bits and peaces. I could not find a complete tutorial or description of the implementation of APP navigation in the Ionic official documentation.

I’ll appreciate If you direct me to a working tutorial or example.

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [March 12, 2020, 9:34pm UTC](https://forum.ionicframework.com/t/tabs-navigation-with-nested-pages/185047/4 "2020-03-12T21:34:52Z")

</div>

> [@ehboym](#):
>
> no of them create a router module in the tabs app

```auto
$ ionic start --type=angular scratchy tabs | grep routing.module.ts 2>&1
 create mode 100644 src/app/app-routing.module.ts
 create mode 100644 src/app/tabs/tabs-routing.module.ts

```

> [@ehboym](#):
>
> I am not even shore that the Ionic document is current because the entire file structure created by the Ionic start is different then the file structure described in the Ionic documentation.

I am looking at [Open-Source UI Toolkit to Create Your Own Mobile Apps](https://ionicframework.com/docs). Is that what you are describing?

> [@ehboym](#):
>
> I could not find a complete tutorial or description of the implementation of APP navigation in the Ionic official documentation.

I don’t work for or speak for Ionic, but I can say that I don’t use Ionic’s starter templates (aside from `blank`), generators, or lazy-loading module structure. I don’t say this to throw shade on these things, as much to emphasize that you are under no compulsion to do anything involving code structure or routing with them. It is perfectly possible to create an Ionic app using any navigation system you desire or are familiar with.

---

<div class="post-metadata">

**Author:** ![ehboym](https://avatars.discourse-cdn.com/v4/letter/e/ccd318/32.png) [@ehboym](https://forum.ionicframework.com/u/ehboym)\
**Post date:** [March 12, 2020, 9:50pm UTC](https://forum.ionicframework.com/t/tabs-navigation-with-nested-pages/185047/5 "2020-03-12T21:50:50Z")

</div>

I mast be doing something wrong, I don’t get these modules.  
I’ll try to update everything again maybe something is missing.

I was looking on the same documentation you pointed to. They assume that you already know Ionic so they don’t give a full description.

Thanks, I’ll go back to the docs see if I can make sense out of them.

---

<div class="post-metadata">

**Author:** ![TomCosta](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/tomcosta/32/149715_2.png) [@TomCosta](https://forum.ionicframework.com/u/TomCosta)\
**Post date:** [March 15, 2020, 3:16pm UTC](https://forum.ionicframework.com/t/tabs-navigation-with-nested-pages/185047/6 "2020-03-15T15:16:15Z")

</div>

Hi @ehboym!  
I think you need to update your Ionic environment.  
About your `ionic info` command, it doesn’t show the really Ionic version like this:

```auto
Ionic Framework : @ionic/angular 5.0.5

```

You are showing jus the CLI version:

```auto
Ionic CLI : 6.2.1

```

It’s a small detail, but need to check everything around it.  
To update the Ionic version do the commands below:

```auto
$ npm uninstall -g ionic && npm install -g ionic

```

It may require the `sudo` permission, depending on your installations.  
Start a new fresh installation and let’s see the results.  
To start a new Ionic App do the following commands:

```auto
$ ionic start myApp tabs --type=ionic-angular

```

Change ‘`myApp`’ to your desired App name.  
Hope it helps you.

---

<div class="post-metadata">

**Author:** ![ehboym](https://avatars.discourse-cdn.com/v4/letter/e/ccd318/32.png) [@ehboym](https://forum.ionicframework.com/u/ehboym)\
**Post date:** [March 16, 2020, 12:34pm UTC](https://forum.ionicframework.com/t/tabs-navigation-with-nested-pages/185047/7 "2020-03-16T12:34:10Z")

</div>

Hi,

Thanks, I uninstalled everything and reinstalled from scratch.  
Fixed the problem.
