Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试为动态组件加载创建通用代码。我已经实现了父子关系。其中,child 覆盖了 parent,将用于动态加载组件。下面是我关注的链接 -
动态组件加载
我对其进行了更改,现在它看起来像下面的链接 -
更新了我的更改
不知何故,它不起作用并且不加载更改。我在这里想念什么。
我通过在我的 module.ts 中添加以下行来解决上述问题 -
entryComponents: [ Child1, Child2 ]