Can't bind to 'ngForOf' since it isn't a known property of 'tr' (final release)
<p>I'm using Angular2 <code>2.1.0</code>. When I want to display a list of companies, I got this error.</p>
<p>in <code>file.component.ts</code> :</p>
<pre class="lang-js prettyprint-override"><code>public companies: any[] = [
    { &quot;id&quot;: 0, &quot;name&quot;: &quot;Available&quot; },
    { &quot;id&quot;: 1, &quot;name&quot;: &quot;Ready&quot; },
    { &quot;id&quot;: 2, &quot;name&quot;: &quot;Started&quot; }
];
</code></pre>
<p>In <code>file.component.html</code> :</p>
<pre class="lang-html prettyprint-override"><code>&lt;tbody&gt;
  &lt;tr *ngFor=&quot;let item of companies; let i =index&quot;&gt;
     &lt;td&gt;{{i}}&lt;/td&gt;
     &lt;td&gt;{{item.name}}&lt;/td&gt;
  &lt;/tr&gt;
&lt;/tbody&gt;
</code></pre>