问题
The title already says it, which one should I use and is there / what is the difference between having
<table mat table [dataSource]="items" ...
or
<mat table [dataSource]="items" ...
in my HTML markup?
On a cursory glance they both work fine, but I assume there must be a difference...
EDIT: I'm specifically talking about resizeable columns, like in this example: https://stackblitz.com/edit/angular-rtfc5v?file=src%2Fapp%2Fapp.component.html
If you switch the
来源:https://stackoverflow.com/questions/55607365/should-i-use-table-mat-table-or-mat-table