Angular Material Table Tutorial with API Data - How to Create an Angular Material Table

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

Thank You! Thank You! Thank You! I have been looking for a video that explains material table that actually calls an API!

stozo
Автор

Great up to date tutorial, waiting for the next video !

jeancolombel
Автор

I am getting error "provided data source did not match an array observable or datasource". When I console.log(data) it shows data is within some object
{ statusCode:200, errorMsg:'No response', exception: 'No response', response: Array(682), successMsg: 'success'}
If I toggle that arrow next to "response" that is where my entire array is that I want to store in dataSource. Can someone please assist? I tried to write [dataSource] = "users.response". but not working.

paritashah
Автор

I need some help. I did exactly the same, but my table renders with no data on it. It is because its seems like its render before the data loads in my array. Any help?
Edit. Done, I call the service on the ngInit

ivanmartinsk
Автор

Good video! Can you upload source code of this project please? That would be very helpful.

levannatsvlishvili