Dynamic menu item in ion-menu


#1

I am showing ion-menu button on around 10 pages. I want to change menu items dynamically based on the user settings.
For ex: If a user enables some functionality in the settings screens I want to update the side menu items.

The current issue I am having is if I have this type of code on every page, I need to duplicate the preferences check in every controller.

<button ion-button menuToggle>
      <ion-icon name="menu"></ion-icon>
</button>

I am looking for any solution that may work on all the pages with a single function, Or some way I can show dynamic menu items from all the ‘menu-toggle’ button click.