0

I have two custom elements where I'm calling main.js.

enter image description here

I try to display both within another app using @angular-extensions/elements or just adding script to index.html. When I call the two custom elements I it just shows the first one on the screen, but when I look at the inspect it loads the main.js of the two elements.

Before calling the custom elements enter image description here

After calling the custom elements, but it only shows the first custom element on the screen. enter image description here

Custom element appears on screen enter image description here

Does anybody know what happens? As I said above, it loads the main.js of the two elements, but it only loads the first element.

Quando chamo os elementos customizados sem usar o ngIf, os dois aparecem, mas preciso utilizar a validacao do if.

code: enter image description here

browser: enter image description here

weile123
  • 11
  • 1

0 Answers0