I have a custom component called Suggestion List, which displays a list of Suggestions to the user from an observable. I have created this component as generic as possible so you can pass any array of data, so I'd like to be able to customize the display of it from the parent as I'll never know for certain what the objects will look like until implementing it. Unfortunaly I can't access the child components variables from the parent in ng-container.
Is this possible with ng-container or ng-template or should I be taking another route altogether?
Parent Component
<suggestion-list (suggestionSelected)="selectSuggestion($event)" [$suggestions]="$suggestionSource">
<ng-container>
{{suggestion.firstname + ' ' + suggestion.lastname}}
<ng-container>
</suggestion-list>
Child Component
<mat-list role="list">
<mat-list-item *ngFor="let suggestion of $suggestions | async">
<mat-icon mat-list-icon>person</mat-icon>
<mat-card (click)="selectSuggestion(suggestion)">
<ng-container></ng-container>
</mat-card>
</mat-list-item>
</mat-list>