# Impossible navigation between pages

**URL:** <https://forum.ionicframework.com/t/impossible-navigation-between-pages/65778>\
**Category:** ionic-v3\
**Created:** [October 4, 2016, 7:34pm UTC](https://forum.ionicframework.com/t/impossible-navigation-between-pages/65778 "2016-10-04T19:34:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Calliste](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calliste/32/103720_2.png) [@Calliste](https://forum.ionicframework.com/u/Calliste)\
**Post date:** [October 4, 2016, 7:34pm UTC](https://forum.ionicframework.com/t/impossible-navigation-between-pages/65778/1 "2016-10-04T19:34:03Z")

</div>

Hi,

I’ve tried to navigate between to pages with this following tutorial : [http://blog.ionic.io/10-minutes-with-ionic-2-adding-pages-and-navigation/](http://blog.ionic.io/10-minutes-with-ionic-2-adding-pages-and-navigation/) but it does not work, I’ve exactly the same thing but when I click on the button, nothing is happening.

So I’ve tried to test an example given by the documentation :

```
      @Component({
         template: `
            <ion-header>
              <ion-navbar>
                 <ion-title>Login</ion-title>
                </ion-navbar>
              </ion-header>

      <ion-content>
        <button (click)="goToOtherPage()">
          Go to OtherPage
        </button>
      </ion-content>`
    })
    export class StartPage {
      constructor(public navCtrl: NavController) {}

      goToOtherPage() {
        //push another page onto the history stack
        //causing the nav controller to animate the new page in
        this.navCtrl.push(OtherPage);
      }
    }

    @Component({
      template: `
      <ion-header>
        <ion-navbar>
          <ion-title>Other Page</ion-title>
        </ion-navbar>
      </ion-header>

      <ion-content>I'm the other page!</ion-content>`
    })
    class OtherPage {}

```

But this is the same issue. When I’m clicking with the web browser on the button, nothing is happening.

Any ideas ?

---

<div class="post-metadata">

**Author:** ![Calliste](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calliste/32/103720_2.png) [@Calliste](https://forum.ionicframework.com/u/Calliste)\
**Post date:** [October 5, 2016, 7:37am UTC](https://forum.ionicframework.com/t/impossible-navigation-between-pages/65778/2 "2016-10-05T07:37:54Z")

</div>

Issue resolved !

Just had to add declarations of my Page into `app.modules.ts` file.

Something like that :

```
import {NewPage} from '../pages/my-new-page/my-new-page';
@NgModule({
  declarations: [
    MyApp,
    HomePage,
    NewPage //ADDED LINE
  ],
  imports: [
    IonicModule.forRoot(MyApp)
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage,
    NewPage //ADDED LINE
  ],
  providers: []
})
export class AppModule {}
```

---

<div class="post-metadata">

**Author:** ![chathurangaits](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@chathurangaits](https://forum.ionicframework.com/u/chathurangaits)\
**Post date:** [October 14, 2016, 3:37am UTC](https://forum.ionicframework.com/t/impossible-navigation-between-pages/65778/3 "2016-10-14T03:37:23Z")

</div>

Thanks Dude !!! Just wasted almost a day to find this solution
