且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

带有延迟加载模块和子路由的 Angular 7 路由器“**"通配符不起作用?

更新时间:2021-12-29 10:01:17

我相信您必须重定向到实际路线.有一些与此相关的主题,这里有一个.此外,根据 Angular 的示例,您可能需要从 LazyModule 导出 RouterModule.

I believe you have to redirect to an actual route. There are a few topics related to this, here is one. Also per Angular's examples, you might have to export your RouterModule from LazyModule.