title: Angular2 watch for route change
body: <pre><code>@RouteConfig([
      {path: '/about', name: 'About', component: About, useAsDefault: true},
      {path: '/test', name: 'Test', component: Test}
  ])
  
  export class MyApp {
      router: Router;
      location: Location;
      isCollapsed: boolean = true;
  
      // ON ROUTE CHANGE {
          this.isCollapsed = true;
      // }
  
      constructor(router: Router, location: Location) {
          this.router = router;
          this.location = location;
      }
  }
  </code></pre>
  
  <p>I need change variable value on every route change, how to watch for this event in Angular 2.x?</p>