Skip to content

Documentation on how to create web components from existing Angular Components #2867

Answered by hardl
andrew-tud asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
luigi offers two ways for integration of web component based micro frontends. The preferred way is that your web component is served as a single esm javascript file that exports the web component class as default. With such a setup, you just have to configure the viewUrl and set webcomponent: true at the node in luigi config.
I'm not sure if this is somehow possible with angular elements, at least I could not find out how a while back.
Therefore for angular elements, as well as other frameworks with limited controll over the output format, you should use the second way, which is what we call "self registration".
If you create a redistributable angular elements web component by followi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by andrew-tud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants