title: How to fix Error trying to diff '[object Object]'. Only arrays and iterables are allowed in angular 10 using defined array[]?
body: <p>I am using angular 10 for my application. in my application, I have a get method and I got the data i want to display it. for this question there are lot of answers are there in here, but i tried everything it doesn't work properly.</p>
  <p>I have a model file and in that file, I have deserialize(), serialize() options also, so the response data type should same as the interface file type. But response data showing this error(Only arrays and iterables are allowed)not rendering in HTML also. but I used an empty array for the response data variable.</p>
  <p>I included my stackblitz URL also here, please help me to fix this.</p>
  <ul>
  <li><a href="https://stackblitz.com/edit/sankar-apr-16?file=src%2Fapp%2Fmodel-users%2Fmodel-users.component.ts" rel="nofollow noreferrer">https://stackblitz.com/edit/sankar-apr-16?file=src%2Fapp%2Fmodel-users%2Fmodel-users.component.ts</a></li>
  </ul>
  <p>This is my model.ts codes:</p>
  <pre><code>userInfo: userInformation[] = [];
  
  ngOnInit() {
   this.enableLoader = true;
   this.formService.findAll().subscribe((data: userInformation[]) =&gt; {
     this.enableLoader = false;
     this.userInfo = data;
     console.log(this.userInfo)
   });
  </code></pre>
  <p>This is my mode.ts file</p>
  <pre><code>export class userInformation extends Base implements PageObject {
  @serializable
  public id: number;
  @serializable
  public avatar: string;
  @serializable
  public email: string;
  @serializable(alias('first_name'))    
  public firstname: string;
  @serializable(alias('last_name'))
  public lastname: string;
  
   deserialize(input: any): this {
     return Object.assign(this, deserialize(userInformation, input));
   }
  }
  </code></pre>
  <p>This is my service file:</p>
  <pre><code>public findAll():Observable&lt;userInformation[]&gt; {
     return this.httpClient.get&lt;userInformation[]&gt;(this.usersUrl + '/api' + '/users' + '?page=2', {
      headers: this.httpHeaders.contentTypeApplication,
       params: this.httpHeaders.serializeParams()
     })
   }
  </code></pre>