I have a custom Angular element - basically HTML input with validation for Number input or Date input. Usage in Angular template:
<div class="input-group">
<app-input-number
formControlName="amount_received"
ngbAutofocus
class="form-control"
>
</app-input-number>
<div class="input-group-append">
<span class="input-group-text">USD</span>
</div>
</div>
Rendered output:
<div _ngcontent-omn-c8="" class="input-group">
<app-input-number _ngcontent-omn-c8="" class="form-control-host ng-pristine ng-valid ng-touched" formcontrolname="amount_received" ngbautofocus="" _nghost-omn-c10="" ng-reflect-name="amount_received">
<input _ngcontent-omn-c10="" class="form-control text-right" type="text">
</app-input-number>
<div _ngcontent-omn-c8="" class="input-group-append">
<span _ngcontent-omn-c8="" class="input-group-text">EUR</span>
</div>
</div>
Problem is the custom element <app-input-number
. I see 2 possible solutions:
1/ Modify Bootstrap selector: change .input-group > .form-control
to .input-group .form-control
, I would like to avoid some hardcoded overwriting. Is there any way how to modify?
2/ Render Angular component without wrapping tag. Is this possible?
Thanks