I'm trying to bootstrap an Angular 2+ app (6 to be precise) inside a specific DOM node. I want to do this inside a web component my-component
(written with StencilJS).
Ideally I could bootstrap from the root element of my web component with a selector or the HTMLElement.
The problem however is that Angular is instantianted "globally" on the page and therefore tries to interpret all tags as Angular components - not just the ones found inside my own web component:
I've tried 3 different approaches found on the web. However many of them still use the .bootstrap
method which is no longer available in newer Angular versions. Others just instantiate components in a certain node but not the whole app.
NgDoBootstrap
seemed to be a quite promising way but it also leads to Angular parsing all components found on the page.
I've created a repo to investigate the issue. Any help would be appreciated.