Hi
Below code returns 2 records but no Data is shown in table
TypeScript
getallEmployee() {
this.htp.get('onlinetestapi.gerasim.in/api/TeamSync/GetAllEmployee').subscribe((result: any)=>{
this.dataSource = new MatTableDataSource(result);
debugger;
})Thanks

Rajendra TaradaleRank #1,289 · 1.3K reputationPosted Jun 5, 2024, 1:32 AM EDT
Check the URL this.htp and log the response body to understand the response format