Communication between Controller and Component


I have a component (a loading spinner) that shown/hidden based on a value of the ‘visible’ property of that component.

I want to find a way to set the value of that property from one or more controllers so I can control the visibility of the component when certain controllers actions are being executed.

How can I achieve that?