Should I use “<table mat table … ” or “<mat-table …”

半世苍凉 提交于 2019-12-23 09:55:25

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!