title: How to get Route data into App Component in Angular 2
body: <p>I have defined some route data in my app routing module like below:</p>
  
  <pre><code>    const appRoutes:Routes = [
    {path: '', component: LoginComponent, data:[{PageName:"Login Page"}]}]
  </code></pre>
  
  <p>I want to get the data globally so that I can use appRoutes in app.component.ts to get the URL redirection related information as below:</p>
  
  <pre><code>export class AppComponent {
    title = 'Welcome';
    constructor(public router: Router, public authenticationService: AuthenticationService) {
      this.router.events.subscribe(event =&gt; {
          console.log("Url",event.urlAfterRedirects);
          console.log("Page Name", router[PageName]); //Not working
        }
  </code></pre>
  
  <p>I tried injecting ActivatedRoute but it's not getting updated after each redirection.</p>
  
  <p>Is there anyway, where I can configure page name and get it in global <code>app.component.ts</code>.</p>