I created a custom input component that works well when just included inside a form. However, if I put it inside an ion-item element, it just does not appear (it’s not even in the DOM):
<form *ngIf="form" [formGroup]="form"> <ion-list> <ion-item> <ion-label>TEST</ion-label> // the label is visible <loc-input formControlName="location"></loc-input> // the location input element is not visible and not part of the DOM </ion-item> </ion-list> </form>
If I replace “loc-input” with an “ion-input” it works. Apparently I have to add an attribute to loc-input to make it work, but I have no idea which one. Do you have an idea?