Can't bind to 'dataSource' since it isn't a known property of 'table'

前端 未结 10 2111
南方客
南方客 2020-12-03 00:32

I am new in angular 5 development. I am trying to develop a data table with angular material using the example provided here: \"https://material.angular.io/components/table/

10条回答
  •  [愿得一人]
    2020-12-03 00:53

    Remember to import the MatTableModule module and remove the table element show below for reference.
    wrong implementation

    ...

    correct implementation:

提交回复
热议问题