How to get the response of a modal triggered from another modal ionic 3


#1

Good afternoon.
My question is this: How do I opt for the response of a modal that was not shot from the page?
I explain in my page a modal shot with several options depending on the option that the user types the modal one will close and another one will open with other information … I need to capture the response of the second modal.
I know that if it were from the first modal it is done like this …
modal.onDidDismiss (answer)
but how do I opt for the response of the second modal