Bert De Coutere7542969
Posts: 0
Joined: Tue May 19, 2015 9:48 am

How do I read componentProps information in a modal screen?

In Ionic4, how can I read the data that is passed via componentProps to a modal screen? How can I read that data in the modal screen? It used to be through navParams, but that throws an error in Ionic4.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How do I read componentProps information in a modal screen?

Hello Bert,

Have you stored that value to the Storage and rea dit from there?

Bert De Coutere7542969
Posts: 0
Joined: Tue May 19, 2015 9:48 am

How do I read componentProps information in a modal screen?

Hi Serhii, yes that works. I just thought since the snippet provides componentsProps when you launch the modal, there would be another way than storage to retrieve them. Thanks.

Galyna Abramovych
Site Admin
Posts: 84
Joined: Tue Mar 22, 2016 6:03 pm

How do I read componentProps information in a modal screen?

Hello again,

You can also check this sample to know more about passing data to/from modal screens: https://docs.appery.io/docs/samples#p....

Return to “Issues”