I have a component called members that contains individual member components.
When I use the members component as static code, everything works fine:
<div class="row bg-light justify-content-center py-4">
<div class="col-lg-8">
<h3 class="font-weight-light pb-2">Members</h3>
<div class="row">
<!-- Repeating div -->
<div class="col-12 col-md-4 col-lg-3 p-2">
<div class="card px-0 ">
<img class="card-img-top" src="https://i1.sndcdn.com/avatars-000495007683-zg65ko-t500x500.jpg" alt="Card image cap">
<div class="card-body p-2 text-center">
<h5 class="card-title mb-1">Name Surname</h5>
<p class="card-text mb-1">Title</p>
<a href="#"><span class="ion ion-logo-linkedin text-dark mx-1 h3"></span></a>
<a href="#"><span class="ion ion-logo-github text-dark mx-1 h3"></span></a>
<a href="#"><span class="ion ion-logo-twitter text-dark mx-1 h3"></span></a>
</div>
</div>
</div>
<!-- Repeating div -->
</div>
</div>
</div>
https://i.sstatic.net/oorYH.png
However, when I try to use the repeating div as a component, issues arise:
<div class="row bg-light justify-content-center py-4">
<div class="col-lg-8">
<h3 class="font-weight-light pb-2">Members</h3>
<div class="row">
<app-member></app-member>
<app-member></app-member>
<app-member></app-member>
</div>
</div>
</div>
https://i.sstatic.net/0pZtG.png I'm struggling to figure out why this is happening.