路由回到我的主页时重新加载整个应用程序

问题描述

当路由回到Angular的主页时如何重新加载整个应用程序。 我已经设置了这样的路线。

Routes = [
{path: 'member-dashboard',loadChildren: () => import('./member-dashboard/member- 
dashboard.module').then(m => m.MemberDashboardModule),canActivate: [DashboardGuard]},{path: '',component: IndexComponent},{path: 'sign-in',component: SignInComponent},{path: 'abouts',component: AboutsComponent},{path: 'artists',component: ArtistsComponent},{path: 'contacts',component: ContactsComponent}
];

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)