How to show empty message in data table angular material, If no data found

前端 未结 18 924
别那么骄傲
别那么骄傲 2021-01-07 16:51

I am using this code

 
  
    

        
18条回答
  •  Happy的楠姐
    2021-01-07 17:21

    With Angular Material 10 If you want to show a message when not data matches the filter, you can use the *matNoDataRow directive.

     
      
        No data matching the filter
      
    
    

提交回复
热议问题