title: Type 'object' is not assignable to type 'NgIterable<any> | null | undefined'
body: <pre class="lang-html prettyprint-override"><code>    &lt;!--app component.html--&gt;
      &lt;div class=&quot;position-relative container&quot;&gt;
        &lt;div class=&quot;row justify-content-center&quot;&gt;
          &lt;div class=&quot;card mt-sm-3 col-md-8&quot;&gt;
            &lt;div class=&quot;card-body&quot;&gt;
              &lt;h3 class=&quot;mb-0&quot;&gt;Artist Directory&lt;/h3&gt;
              &lt;div class=&quot;form-group&quot;&gt;
                &lt;div class=&quot;form-label&quot;&gt;&lt;strong&gt;For:&lt;/strong&gt;
                  {{ query }}
                &lt;/div&gt;
                &lt;input class=&quot;form-control mt-2&quot; type=&quot;text&quot;&gt;
              &lt;/div&gt;&lt;!-- form-group --&gt;
            &lt;/div&gt;&lt;!-- card-body --&gt;
          &lt;/div&gt;&lt;!-- card --&gt;
        &lt;/div&gt;&lt;!-- row --&gt;
        &lt;div class=&quot;position-absolute container&quot; style=&quot;left: 0; z-index:10&quot;&gt;
          &lt;div class=&quot;row justify-content-center&quot;&gt;
            &lt;div class=&quot;col-sm-10 col-md-8 col-lg-6 col-xl-5&quot;&gt;
              &lt;div class=&quot;list-group&quot;&gt;
                &lt;a href=&quot;#&quot; class=&quot;list-group-item list-group-item-action flex-column align-items-start&quot;
                  *ngFor=&quot;let artist of artists&quot;&gt;
                    &lt;div class=&quot;media&quot;&gt;
                      &lt;div class=&quot;media-body align-self-center&quot;&gt;
                        &lt;h5 class=&quot;m-0&quot;&gt;{{ artist.name }}&lt;/h5&gt;
                        {{ artist.reknown }}
                      &lt;/div&gt;&lt;!-- media body --&gt;
                    &lt;/div&gt;&lt;!-- media --&gt;
                &lt;/a&gt;&lt;!-- link --&gt;
              &lt;/div&gt;&lt;!-- list-group --&gt;
            &lt;/div&gt;&lt;!-- col --&gt;
          &lt;/div&gt;&lt;!-- row --&gt;
        &lt;/div&gt;&lt;!-- container --&gt;
      
      &lt;/div&gt;&lt;!-- position --&gt;
  
  </code></pre>
  <pre class="lang-js prettyprint-override"><code>// app component.ts
  import { Component } from '@angular/core'
  
  @Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styles: [
      `
        .list-group-item:first-child {
          border-top-left-radius: 0;
          border-top-right-radius: 0;
          border-top: 0;
        }
      `,
    ],
  })
  export class AppComponent {
    query: string
    artists: object
    constructor() {
      this.query = 'Barot'
      this.artists = [
        {
          name: 'Barot Bellingham',
          shortname: 'Barot_Bellingham',
          reknown: 'Royal Academy of Painting and Sculpture',
          bio: 'Barot has just finished his final year at The Royal Academy of Painting and Sculpture, where he excelled in glass etching paintings and portraiture. Hailed as one of the most diverse artists of his generation, Barot is equally as skilled with watercolors as he is with oils, and is just as well-balanced in different subject areas. Barot\'s collection entitled &quot;The Un-Collection&quot; will adorn the walls of Gilbert Hall, depicting his range of skills and sensibilities - all of them, uniquely Barot, yet undeniably different',
        },
        {
          name: 'Jonathan G. Ferrar II',
          shortname: 'Jonathan_Ferrar',
          reknown: 'Artist to Watch in 2012',
          bio: 'The Artist to Watch in 2012 by the London Review, Johnathan has already sold one of the highest priced-commissions paid to an art student, ever on record. The piece, entitled Gratitude Resort, a work in oil and mixed media, was sold for $750,000 and Jonathan donated all the proceeds to Art for Peace, an organization that provides college art scholarships for creative children in developing nations',
        },
      ]
    }
  }
  </code></pre>
  <p>I am trying to run the code above but getting error</p>
  <p>Error: src/app/app.component.html:20:32 - error TS2322: Type 'object' is not assignable to type 'NgIterable | null | undefined'.</p>
  <p>20             *ngFor=&quot;let artist of artists&quot;&gt;
  ~~</p>
  <p>src/app/app.component.ts:5:15
  5   templateUrl:'./app.component.html',
  ~~~~~~~~~~~~~~~~~~~~~~
  Error occurs in the template of component AppComponent.</p>