1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Angular 18+ Elements bundled as Web components

Discussão em 'Angular' iniciado por Vladyn, Setembro 24, 2024.

  1. Vladyn

    Vladyn Guest

    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. Note: I'm using the latest release, 18.2.x, and the experimental zone-less feature. The Zone.js is messing my router in the outer app, which is Aurelia :) By running the example from the angular docs, I can not see it as a stand-alone working web component.

    Continue reading...

Compartilhe esta Página