Angular + Material - How to refresh a data source (mat-table)

前端 未结 23 1379
自闭症患者
自闭症患者 2020-11-28 01:59

I am using a mat-table to list the content of the users chosen languages. They can also add new languages using dialog panel. After they added a language and returned back.

23条回答
  •  日久生厌
    2020-11-28 02:57

    npm install @matheo/datasource
    

    I released a library aimed to be the official Material DataSource in the future, supporting any kind of input streams (sort, pagination, filters), and some configuration with debugging to see how it works while you're coding.

    import { MatDataSourceModule } from '@matheo/datasource';
    

    You can find the StackBlitz demo and further information here:
    https://medium.com/@matheo/reactive-datasource-for-angular-1d869b0155f6

    I'd be glad to hear your opinion and support your use cases if necessary.
    Happy coding!

提交回复
热议问题