How to watch route change and change value of boolean variable every time route changes in Angular 2?
<p>I have a header component where I am making few boolean variables true to make the buttons visible in html. So basically in angular 1.x we were using watch on location.path. But in angular 2, I understand we don't have watch. When i explored more about how to achieve this, I came across topics like change detection, ngOnChange, Observable, router.subscribe etc.. I am new to Angular 2 and using Angular 2.0.0-beta.15.I cannot understand which topic i should read to find solution. Can somebody help me which topic is relevant to my situation?</p>