26

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

Hobbamok
  • 767
  • 1
  • 11
  • 21
  • 2
    they are the same, but in angular material docs tell you to put `