# Child component is displayed beneath parent comonent

**URL:** <https://forum.builder.io/t/child-component-is-displayed-beneath-parent-comonent/3835>\
**Category:** Bugs\
**Tags:** angular\
**Created:** [July 5, 2023, 10:41pm UTC](https://forum.builder.io/t/child-component-is-displayed-beneath-parent-comonent/3835 "2023-07-05T22:41:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robbe-Van-den-Hove](https://avatars.discourse-cdn.com/v4/letter/r/a698b9/32.png) [@Robbe-Van-den-Hove](https://forum.builder.io/u/Robbe-Van-den-Hove)\
**Post date:** [July 5, 2023, 10:41pm UTC](https://forum.builder.io/t/child-component-is-displayed-beneath-parent-comonent/3835/1 "2023-07-05T22:41:01Z")

</div>

I am currently having trouble with adding child components to a custom parent component while using angular.

The child component is rendered under the parent component instead of inside the parent component.

I know this bug came up once but I am not helped by the React code as reply due to different way of coding.

For example I am creating a Hero where I want to be able to drag and drop a custom component in the hero. But this component is rendered under the Hero see image.

Please help me to fix this. I love this platform but that is one bug that is so hard to fix.

 ![Screenshot 2023-07-06 at 00.39.33](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/2/26f8f19d2c9fac46058d1991aa2169d978de10d0.jpeg)

Here you can see my code:

 ![Screenshot 2023-07-06 at 00.40.24](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/4/4f73b6b8a1263553324b3216d1209f6e3a25b63e.png)  
 ![Screenshot 2023-07-06 at 00.40.46](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/3/39592e9170bc435920a4692b3533967041aec54d.png)

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [July 13, 2023, 6:16am UTC](https://forum.builder.io/t/child-component-is-displayed-beneath-parent-comonent/3835/2 "2023-07-13T06:16:03Z")

</div>

Hello @Robbe-Van-den-Hove,

Could you please share the complete custom component code or code sandbox for us to be able to reproduce this?
