title: ActivatedRoute.routeConfig is null - Angular 2 project with Angular-cli
body: <p>I have created 2 different projects using <code>angular-cli</code>. Both work perfectly but in one of them <code>routeConfig</code> is <code>null</code> and have no idea what's wrong.</p>
  
  <p>The <code>package.json</code> of both file are the same so there's no any doubt about packages versions, <code>app.modules</code> files are the same as well.</p>
  
  <p>Here is how I get <code>routeConfig</code> in both projects :</p>
  
  <pre><code>import { Component, OnInit } from '@angular/core';
  import { ActivatedRoute } from '@angular/router';
  
  @Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.scss']
  })
  export class AppComponent implements OnInit {
    constructor(
      private router: ActivatedRoute
    ) { }
  
    ngOnInit(): void {
      console.log(this.router.routeConfig);
    }
  }
  </code></pre>
  
  <p>what's wrong with my implementation?</p>