Close a fab list when navigating away

Hello everyone

This is my first post to the forum here, but I’ve been diving into Ionic for awhile now
I have an app with tabs, and within each tab page, i have a FAB list.

I have no problem closing the list using a local reference #fab and passing it as a parameter and ending a method with fab.close(), but i would like the FAB list to close when i navigate to other tabs/pages.

Is there a way i can execute the fab.close() on ionViewWillLeave or ionViewDidLeave? neither of these seem to take parameters

Have you tried grabbing a reference to it using @ViewChild? That way, you would have it as a property of the page that could be accessed as this.fab.

wow yep that was all I guess
im not sure how that slipped by me

thanks mate!