Angular Material Table Dynamic Columns without model
I need to use angular material table without model, because I don't know what will come from service. So I am initializing my MatTableDataSource and displayedColumns dynamically in component like that : TableComponent : ngOnInit() { this.vzfPuanTablo = [] //TABLE DATASOURCE //GET SOMETHING FROM SERVICE this.listecidenKisi = this.listeciServis.listecidenKisi; this.listecidenVazife = this.listeciServis.listecidenVazife; //FILL TABLE DATASOURCE var obj = {}; for (let i in this.listecidenKisi ){ for( let v of this.listecidenVazife[i].vazifeSonuclar){ obj[v.name] = v.value; } this.vzfPuanTablo.push