title: I keep getting this ERROR: Cannot find a differ supporting object '[object Object]' of type 'object'. NgFor only supports
body: <p>I keep getting this error and I don't know what to do:
  <strong>ERROR Error: Cannot find a differ supporting object '[object Object]' of type 'object'. NgFor only supports binding to Iterables such as Arrays</strong></p>
  <p>this is my service</p>
  <pre><code> recupererHistorique(idCitoyen:number): Observable&lt;Historique[]&gt;{ 
  
      let url = 'http://localhost/tpSyn/getHistoriqueCitoyen.php?idCitoyen=' + idCitoyen;
      return this.http.get&lt;Historique[]&gt;(url); 
    } 
    
  </code></pre>
  <p>this is the component</p>
  <pre><code>export class HistoriqueComponent implements OnInit {
  
    
   @Input() historiquee:Historique;
   historique: Historique[]; 
   selectionActive:boolean = true;
   
    constructor(private serviceCovid: CovidTraceService) { }
  
    ngOnInit(): void {
    }
  
    surChangementCitoyen(){
      
    //this.historiquee = null;
    
  
    }
  
    
    surChangementHistorique(his: Historique){
      this.serviceCovid.recupererHistorique(his.id).subscribe(histo =&gt; this.historique = histo);
      
    
    }
   
  }
  </code></pre>
  <p>And the HTMl</p>
  <pre><code>  &lt;section *ngIf=&quot;historiquee&quot; &gt;
      
      &lt;div &gt;
          &lt;ol &gt;
              &lt;li *ngFor='let hiss of historiquee'&gt; {{hiss.date}}: {{hiss.description}} &lt;/li&gt;
          &lt;/ol&gt;
      &lt;/div&gt;
  
       
      &lt;/section&gt;
  </code></pre>
  <p>In the HTML if i use this instead it works but it shows one line and i want it to show all of the other lines thats why i want to use a *ngFor</p>
  <pre><code>  &lt;div&gt;
              &lt;ol&gt;
                  &lt;h3&gt;
                      &lt;li&gt; {{historiquee.date}}: {{historiquee.description}} &lt;/li&gt;
                  &lt;/h3&gt;
  
              &lt;/ol&gt;
          &lt;/div&gt;
  
  </code></pre>
  <p><a href="https://i.stack.imgur.com/3UjaW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3UjaW.png" alt="enter image description here" /></a></p>