How to pass a parameter while routing to the page using navcontroller in ionic 4


I am creating social media application. I need to pass username fullname and usertoken for all the screens. In ionic 3 i used navparams. But in ionic 4 its not supporting.

Please help…

Hi !

You can :

  • pass the information in the url and get them from the second page.
  • use a data service

This article can help you set up those solutions.
For your use case, I recommend you to use a shared data service.

Good luck on this


Thanks a lots. Its working