I'm trying to develop a set of form components in Angular 8 using BootStrap but there is a strange behavior.
Following html works perfectly:
<div class="form-group row">
<label for="input01" class="col-2 col-form-label">First Name</label>
<div class="col-4">
<input type="text" class="form-control" id="input01" placeholder="First Name">
</div>
<label for="input01" class="col-2 col-form-label">Last Name</label>
<div class="col-4">
<input type="text" class="form-control" id="input01" placeholder="Last Name">
</div>
</div>
I can see two inputs with its labels side by side (2+4 columns for each input/label).
If I take this snipet and encapsulates it in a component:
<label for="input01" class="col-2 col-form-label">First Name</label>
<div class="col-4">
<input type="text" class="form-control" id="input01" placeholder="First Name">
</div>
And use it as following:
<div class="form-group row">
<app-input-text></app-input-text>
<app-input-text></app-input-text>
</div>
It seems to be shrinked.
Please note it is the same code but encapsulated in a component.
What's wrong?
PS: Here is the StackBlitz running code: https://stackblitz.com/edit/angular-g3zxg3
Thanks in advance.