我无法直接前往子路线。我的网址是http://localhost:4201/home/profile但路由器跟踪以 url: '/home' 而不是 url: '/home/profile' 开头
路由器事件:NavigationStart platform-browser.es5.js:1028 NavigationStart(id: 1, url: '/home') platform-browser.es5.js:1028 NavigationStart {id: 1, url: "/home"}
const feedsRoutes: Routes = [
{
path: '',
component: HomeComponent,
children: [
{ path: 'home', redirectTo: '', pathMatch: 'full' },
{ path: '', loadChildren: '../feeds-home/feeds-home.module#FeedsHomeModule' },
{ path: 'business', loadChildren: '../business-home/business-home.module#BusinessModule' },
{ path: 'people', loadChildren: '../people-home/people-home.module#PeopleModule' },
{ path: 'profile', loadChildren: '../profile-home/profile-home.module#ProfileModule' },
{ path: 'settings', component: SettingsComponent, data: { title: 'Settings' } }
]
}
];
这是由于将子路由加载为模块吗?