Angular Material Table own datasource with filter method
问题 With the help of this tutorial I wrote my own datasource for the angular material table. I get the list of data from an api and display it in a material table. Code MyDataSource export class MyDataSource extends DataSource<any> { private users: Observable<User[]>; constructor(private userService: UserService) { super(); } connect(): Observable<User[]> { this.users = this.userService.getAll(); return this.users; } disconnect() { } filterWithCriteria(filterData: any): any { return this.users