I have a custom input I use in a form
<form>
<custom-input #refModel="ngModel"
class="form-control"
[class.errors]="refModel.errors"
[(ngModel)]="myModel">
</custom-input>
</form>
custom-input.component.html
<input type="text" [ngModel]="value" (ngModelChange)="onChange($event)" id="inner-input" />
I'd like the classes applied to custom-input to be applied to my inner-input instead (custom-input must not have any classes at the end).
Is it a good pattern? If so, how can I achieve it?