Relative Content

Tag Archive for javascriptangularweb-componentangular-elements

Angular 18+ Elements bundled as Web components

I have the following question about taking direction to build a web application separated into a micro-front-end app. For this purpose, I’m using Angular Elements. I’m reading the official documentation at https://angular.dev/guide/elements, and my question is:
How can I bundle (run) ng build and embed a script in my page that automatically bootstraps the app when the custom element is added to the DOM?
<popup-element message="alabala"></popup-element> – when I have this on my page, I want my micro app to start.