I have input. There are deferent behaviours for that input - depending on - who is the 'parent' of that input.
I have the following structure.
In my first example here input has the first parent app-chip-list
.
APP COMPONENT HTML
<app-form-field>
<app-chip-list>
<input />
</app-chip-list>
</app-form-field>
FORM FIELD HTML
<ng-content></ng-content>
CHIP LIST
<ng-content></ng-content>
In my second example
APP COMPONENT HTML
<app-form-field>
<input />
</app-form-field>
the input has parent app-form-field
component. And because of that the behaviour of the input will be different.
How can i check this ?