# \[Ionic 4\] push to another pages

**URL:** <https://forum.ionicframework.com/t/ionic-4-push-to-another-pages/136535>\
**Category:** ionic-v3\
**Created:** [July 27, 2018, 10:36pm UTC](https://forum.ionicframework.com/t/ionic-4-push-to-another-pages/136535 "2018-07-27T22:36:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vjotaa](https://avatars.discourse-cdn.com/v4/letter/v/45deac/32.png) [@vjotaa](https://forum.ionicframework.com/u/vjotaa)\
**Post date:** [July 27, 2018, 10:36pm UTC](https://forum.ionicframework.com/t/ionic-4-push-to-another-pages/136535/1 "2018-07-27T22:36:17Z")

</div>

Hello, i want to migrate my app to ionic 4 but i have a problem.

```auto
 this.nav.push(
      ItemDetailComponent,
      {
        product: JSON.stringify(this.product),
        directionY: fromTop,
        active: true
      },
      { animation: 'modal-scale-up-enter', direction: fromTop.toString() }
    );

```

.push does not exist on NavController, i know this can be resolve with angular router, but can i pass the animation ts file that i want?. Sorry for my english.

can you guys give me an example?, please.

---

<div class="post-metadata">

**Author:** ![zameer786](https://avatars.discourse-cdn.com/v4/letter/z/779978/32.png) [@zameer786](https://forum.ionicframework.com/u/zameer786)\
**Post date:** [July 28, 2018, 6:51am UTC](https://forum.ionicframework.com/t/ionic-4-push-to-another-pages/136535/2 "2018-07-28T06:51:22Z")

</div>

import and declare navController in your .ts file this will solve your problem

if not let me know if your using nav.push in call back function

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:28pm UTC](https://forum.ionicframework.com/t/ionic-4-push-to-another-pages/136535/3 "2021-07-19T21:28:39Z")

</div>

Closed on July 19, 2021, 9:28pm UTC


