I've used this model to create a table with expanded rows :
Problem is that I cannot get a row to expand or close without clicking on it.
For example :
When I click on row, it expands in the ng-template :
<ng-template #tpl let-element>
<div class="mat-row detail-row" [@detailExpand] style="overflow: hidden">
<button type="button" (click)="closeRow()">Close Row</button>
</div>
</ng-template>
I'd like to be able to close that row by clicking on the button inside the ng-template.
Hope this is not too confused.