[Ionic 4] push to another pages

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

 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.

1 Like

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