How do I read componentProps information in a modal screen?

This forum contains topics that were moved from Get Satisfaction
Bert De Coutere7542969
Posts: 0
Joined: Tue May 19, 2015 9:48 am

How do I read componentProps information in a modal screen?

Post by Bert De Coutere7542969 »

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: 147
Joined: Tue Aug 27, 2013 1:47 pm

How do I read componentProps information in a modal screen?

Post by Serhii Kulibaba »

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?

Post by Bert De Coutere7542969 »

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: 68
Joined: Tue Mar 22, 2016 6:03 pm

How do I read componentProps information in a modal screen?

Post by Galyna Abramovych »

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....

Post Reply