Could someone put a complete example of a mat-table with datasource adding a data later on when the table is loaded and the table is updated?
My program manages to show the table, the load of data, the dialog box that asks for the new data, the data to add to the database, but I do not know how to refresh the table
I found this example
connect(): Observable<UserVModel[]> {
return this._userService.dataChanged
.switchMap(() => this._userService.getAllUsers()
}
in this link: Angular Material 2: How to refresh md-table after editing a record?
But I do not know how to implement it.
Thank you