Why are there non-standard HTML elements in compiled Angular code?

Published

When inspecting the DOM on a web page created by Angular I see many non-standard HTML elements. E.g. inspect the Angular documentation on custom elements. What are these non-standard HTML elements?

The closest thing I can think of is web components but I haven’t found documentation that states all Angular components will automatically be compiled to web components. Angular supports creating web components (custom elements) but from the documentation it seems one has to import @angular/elements and call createCustomElement and I have a project where I have done neither of these and still see the non-standard HTML elements in the DOM.

I can mention that I am used to React which as far as I know only outputs standard HTML elements.

Source: Angular Questions

Published
Categorized as angular Tagged

Answers

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq