//Notes Module
////////////
const notesRoutes: Routes = [
  {
    path: 'notes',
    component: NotesComponent,
    children: [{
      path: 'detail',
      component: NotesDetailComponent
    }, {
      path: '',
      redirectTo: 'page1',
      pathMatch: 'full'
    }]
  }
];
//////////////
import { Component, OnInit, ViewChild} from '@angular/core';
...
export class NotesComponent{
  ngAfterViewInit() {
    console.log('NOTES.location ', window.location);
  }
}
///////////////
import { Component, OnInit, ViewChild} from '@angular/core';
...
export class NotesDetailComponent{
  ngAfterViewInit() {
    console.log('DETAIL.location ', window.location);
  }
}
/////////////
//NotesDetail html: <a routerLink="/notes" routerLinkActive="active">Notes</a>
//Notes html: <a routerLink="/detail" routerLinkActive="active">Detail</a>When I visit routerLink="/detail I can see console: DETAIL.location but when i visit routerLink="/notes" I can't see console: NOTES.location... Why? Help please
Maybe reason is in my parent Module:
@NgModule({
          imports: [
            BrowserModule,
            HomeModule,
            NotesModule,
            NgbModule,
            RouterModule.forRoot([
              {
                path         : '',
                loadChildren : './home/home.module#HomeModule'}, {
                path         : 'notes',
                loadChildren : './notes/notes.module#NotesModule'}
            ])
          ],
          providers    : [homeService, AppGlobal],
          declarations : [AppComponent],
          bootstrap    : [AppComponent]
        }) 
    