Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71200

Ionic 4 Modal Events

$
0
0

@iharris78 wrote:

Hi,

Can anyone tell me how to listen to modal events from within the modal component in Ionic 4?
I’m trying to listen on the “ionModalDidPresent” event so I can update the size of an internal element based on the size of the modal.

I’ve tried various things:

  • @HostListener decorator
  • modalCtrl.getTop() … addEventListener
  • as above, but using using Renderer2

Using @HostListener(‘click’) works… when I click on the modal, so I think I’m on the right track, but I cant get the ionModalDidPresent event.

Thanks

Ian

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71200

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>