我有一个懒惰的加载组件,并且我有一个路由问题。Angular 4延迟加载路由 - 儿童不加载
的路线是这样的:
const routes: Routes {
{path: '': component: ReportsComponent, children:[
{path: '', component: DeviceReportComponent},
{path: 'sites', component: SiteReportComponent},
{path: 'devices', component: DeviceReportComponent}
]}
}
现在,当我浏览到组件,第一路由负载完美,但在这之后的任何企图导航忽略。
有什么想法?
在你正在向你展示拼写错误的'children'的代码,复制粘贴时这只是一个错字吗? – Philipp
输入此错误时,系统处于未连接到互联网的专用网络 – idekkers