Angular 2 Component listen to change in service
<p>I've a simple question about change detection.</p>

<p>I have a component and a (global) service with a boolean inside.
How can I make the component listen to that boolean and execute a function if that boolean changes?</p>

<p>Thanks!</p>