模块联合加载嵌套应用程序路线
我在以下结构中有一个应用
---主应用程序(路由器outlet>)
- animal()
-仪表板。 (URL应用/狗/仪表板)
- animal(路由器outlet>)
-dashboard(URL应用/CAT/仪表板)
现在,我想将仪表板组件,即Dogdashboard和Catdashboard分开,然后通过模块联合通过动物组件的路由器加载它。
我能做什么到目前为止,要创建主应用程序作为外壳,为Dogdasboard创建另一个应用程序,但是当我通过遥控器导航到猫仪表板时,使用了父Router-outlet,而不是孩子(动物路由器出口)。知道这是否可以做到吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将匹配器与 @angular-Architects/module-federation-tools的“ startswith”一起使用
:https://www.angulararchitects.io/en/aktuelles/multi-framework-and-version- Micro-Frontends-with-Module-federation-your-4-steps guide/
You can use the matcher with the "startsWith" of @angular-architects/module-federation-tools
Take a look: https://www.angulararchitects.io/en/aktuelles/multi-framework-and-version-micro-frontends-with-module-federation-your-4-steps-guide/