Page 1 of 1

How do I read componentProps information in a modal screen?

Posted: Tue May 12, 2020 8:51 am
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.


How do I read componentProps information in a modal screen?

Posted: Tue May 12, 2020 3:21 pm
by Serhii Kulibaba

Hello Bert,

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


How do I read componentProps information in a modal screen?

Posted: Wed May 13, 2020 8:01 am
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.


How do I read componentProps information in a modal screen?

Posted: Wed May 13, 2020 12:04 pm
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....