As per the official example here:
I want to create a “directive”, to allow me to reuse the code for “popover button” in some other different pages.
The popover hv to be able to change some global variable e.g. language settings, and subsequently inform the page to change the text content accordingly.
Should I be creating a component, a directive or provider with ionic CLI?