Answer the question
In order to leave comments, you need to log in
Doesn't see the matHeaderRowDef directive?
There are two lines of code that I wrote according to the guide - https://material.angular.io/components/table/overview
<tr mat-header-row *matHeaderRowDef="displayedColumns;"></tr>
<tr mat-row *matRowDef="let row; columns : displayedColumns"></tr>
imports: [
BrowserModule,
MatTableModule,
MatSortModule,
MatPaginatorModule,
BrowserAnimationsModule
],
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question