Skip to content
Loading
+1
  • +1
    console.log(data)   returns the Error
    Error trying to diff '[object Object]'. Only arrays and iterables are allowed 
    +1
  • +1
    following output gets in network tab of inspect element
    +1
  • Rijwan Ansari
    +1
    Try this way
     
    1. this.service.getList().subscribe(data => {    
    2.        this.data = data;    
    3.        console.log(data);    
    4.        this.headers = Object.keys(data.Table1[0]);   
    5.      });    
    In you data response, there are two tables and you need data from Table1. 
    +1