I want the user to be able to logout or perform various other common functions from any page in my app.
However, I have many pages and do not want too many buttons on every page. I also don't want to duplicate code on each page. Therefore I have made a menu (list component), saved it as a custom component, and added it in a sliding panel to each page, accessed from a menu button. That way, the user can get the menu from any page and log out or perform whatever other function they like.
However, I cannot access the logout service from the custom component.
Is there a way of accessing the logout service from the custom component, or another way of achieving what I want to do?
Regards,
Simon