Running different versions of Angular as webcomponents

Viewed 156

I'm trying to run different versions of Angular as webcomponents in a same page.

example:

<script src="module1.js" /> //has Angular 7 
<script src="module2.js" /> //has Angular 11 
<script src="module3.js" /> //has Angular 7 

And in runtime each module overrides globalThis['ng']. So this mean that's Angular cannot support webcomponents with different versions, because Angular is settings some stuff as global. Maybe someone knows how to resolve this problem?

0 Answers
Related