mitosis
mitosis copied to clipboard
Children prop is broken on Angular
I am interested in helping provide a fix!
Yes
Which generators are impacted?
- [ ] All
- [X] Angular
- [ ] HTML
- [ ] Preact
- [ ] Qwik
- [ ] React
- [ ] React-Native
- [ ] Solid
- [ ] Stencil
- [ ] Svelte
- [ ] Vue
- [ ] Web components
Reproduction case
https://mitosis.builder.io/playground/?code=KYDwDg9gTgLgBAE2AMwIYFcA29noHYDGMAlhHnALICeAwhALaR7B4wAUYUEYAzgJRwA3gCg4cKMBjoo5NqLFwAPAmIA3AHzyFSgGLQ4wVAQAWAXkGduPAHQnimBBLwBfTdrGC2dhwBo4xPCQQAVN1ODl3BWU1dUFvBGdFAHoVDS0FPmd0sWS9KDcolJj5PgBuYWcgA%3D%3D
Expected Behaviour
With this simple code, it should render the same as the React component.
Actual Behaviour
However, in an angular test-app, the compiler fails to compile because the children prop is undefined.
Additional Information
The screenshot below shows the compilation error.
Maybe I am using the children prop wrong ?