An Angular Material list (mat-list) has child elements (mat-list-item). When it renders the list it counts how many lines each item consists of (based on a css class "mat-line").
If the content of "mat-list-item" comes from an angular child component, it (mat-list) does not count the "mat-line" css classes and does not add the class "mat-2-line" to "mat-list-item" and the layout looks bad.
Does anyone have any idea how to make it count the lines in the child component?
Here is a sample app to demonstrate the issue:
https://stackblitz.com/edit/angular-nzhubj?file=src%2Fapp%2Fapp.component.html
Thanks!