Component inside ng-content not load with custom Element Angular

498 views Asked by At

I'm having a little problem with Angular Elements, here an exemple :

I have custom element with this selector "custom" and this template :

<ng-content><ng-content>

I have a component (not custom) with this selector "component" and this template : <p> Hello Word </p>

and in my page my custom element looks like this :

<custom>
     <!-- some HTML -->
     <component></component>
      <!-- some HTML -->
</custom>

my custom element work fine but my component is never load like is not interpreted by angular

Have you any idea why ? and how to do this ?

0

There are 0 answers