feat: Add angular component support and demos#204
feat: Add angular component support and demos#204m310851010 wants to merge 6 commits intoTencent:masterfrom
Conversation
…ngular 12 to "alive" in the main application
|
是否测试多层angular主应用的嵌套?目前我发现 ngZone 的隔离存在问题,就算是把 ngZone 一层层传递还是一样。 另外(angular):开启路由同步后还是还存在覆盖的问题(测试是以多个子应用都有各自的路由)。 |
目前没有测试多层angular主应用嵌套场景。ngZone 的隔离问题是指主应用的ngZone和子应用的ngZone不能隔离吗? 问题2的覆盖的问题是指什么? ngZone覆盖吗? |
前提条件:所有都是 angular 应用。
|
|
支持一下angular |
fix: Maximum call stack size exceeded |
ngZone可以通过 zone_flags.ts 设置 __Zone_symbol_prefix 来隔离开: |
可以在子应用初始化之前, 判断下 zone是否存在 async function ensureZone(): Promise<void> {
if (!(window as any).Zone) {
await import('zone.js');
}
}
async function main(): Promise<void> {
await ensureZone();
await bootstrapApplication(AppComponent, appConfig)
} |


npm run test通过详细描述
Add angular component support, write angular as the main application demo, write development documentation。
#170