As with a bunch of others I’m having issues with using Modals in Ionic4.I have no problems displaying the modal or passing data to it. What I’m trying to get working is returning data from the modal…
I have a modal presenting with a FormGroup on it.
On submission of the form I want to do stuff with the data and dismiss the modal.
But I can’t figure out how to do either from within the modal itself.
The example in the documentation sets up an event listener on the button click to dismiss.
Should I create set up an events listener and use that to close the modal after processing the form data?
That seems excessive compared to v3 mechansim of viewcontroller.dismiss(data)
Any advice appreciated