There are multiple routes for same component, router-outlet is updated perfectly. By default graph was not loaded and when click sidebar also not minimize
But when i refresh the url then only dashboard graph will load? Why is that?
my homepage.html:
<div class="nav-commands">
<a [routerLink]="['home/dashboard']">People</a>
<a [routerLink]="['home/second']">Second</a>
<a [routerLink]="['home/third']">third</a>
<a [routerLink]="['home/forth']">forth</a>
<a [routerLink]="['home/fifth']">fifth</a>
</div>
</div>
<div class="contenttext">
<router-outlet></router-outlet>
</div>
my app.route.module.ts:
{ path: 'home', component: HomeComponent,
children:[
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
{ path: 'dashboard', component: DashboardComponent,},
{ path: 'second', component: SecondComponent,},
{ path: 'third', component: ThirdComponent,},
{ path: 'fourth', component: FourthComponent,},
{ path: 'fifth', component: FifthTaskComponent,},
]}