A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase.
Current behavior:
When a stencil component is inside an Angular component using *ngIf on the angular component leads to the duplication of the stencil component.
Expected behavior:
Stencil components do not duplicate.
Steps to reproduce:
This repo replicate the issue: https://github.com/sebastien-yoobic/duplicate
You can follow the instruction of the Readme, it contains an Angular and the Stencil app starter project. It compile the Stencil project and then use it inside an Angular application.
Related code:
Angular component html
<div *ngIf="visible">
I am an Angular component, I contain a Stencil component
<ng-content></ng-content>
</div>
Stencil version:
I'm submitting a:
Current behavior: When a stencil component is inside an Angular component using *ngIf on the angular component leads to the duplication of the stencil component.
Expected behavior: Stencil components do not duplicate.
Steps to reproduce:
This repo replicate the issue: https://github.com/sebastien-yoobic/duplicate You can follow the instruction of the Readme, it contains an Angular and the Stencil app starter project. It compile the Stencil project and then use it inside an Angular application.
Related code:
Angular component html
ts
Use of stencil component form Stencil starter.
Other information:
The repo is cleaner that the one before and I hope you will be able to reproduce the issue, If you have any trouble reproducing it, let me know.
Thanks,