*ngFor on ng-template outputs nothing Angular2 : <p>Not sure why my *ngFor loop is printing nothing out. I have the following code in an html file:</p>

<pre><code>&lt;table class="table table-hover"&gt;
    &lt;thead&gt;
        &lt;tr&gt;
            &lt;th&gt;Name&lt;/th&gt;
            &lt;th&gt;Email&lt;/th&gt;
            &lt;th&gt;Company&lt;/th&gt;
            &lt;th&gt;Status&lt;/th&gt;
        &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
        &lt;!-- NGFOR ATTEMPTED HERE -- no content printed --&gt;
        &lt;ng-template *ngFor="let xb of tempData"&gt;
            &lt;tr data-toggle="collapse" data-target="#demo1" class="accordion-toggle"&gt;
                &lt;td&gt;{{ xb.name }}&lt;/td&gt;
                &lt;td&gt;{{ xb.email }}&lt;/td&gt;
                &lt;td&gt;{{ xb.company }}&lt;/td&gt;
                &lt;td&gt;{{ xb.status }}&lt;/td&gt;
            &lt;/tr&gt;
            &lt;!-- other content --&gt;
        &lt;/ng-template&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
</code></pre>

<p>Then, in my simple component I have the following:</p>

<pre><code>import { Component }        from '@angular/core';

@Component({
    selector: 'my-profile-exhibitors',
    templateUrl: './profile-exhibitors.component.html',
    styleUrls: ['./profile-exhibitors.component.scss']
})
export class ProfileExhibitorsComponent {
    public tempData: any = [
        {
            'name': 'name1',
            'email': 'email1@gmail',
            'company': 'company',
            'status': 'Complete'
        },
        {
            'name': 'name2',
            'email': 'email2@gmail',
            'company': 'company',
            'status': 'Incomplete'
        }
    ];
    constructor() {}
}
</code></pre>

<p>When I run this code, I get zero output. Even weirder is that when I select the element using debug tools I see this:</p>

<p><a href="https://i.stack.imgur.com/9Vlch.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9Vlch.png" alt="enter image description here"></a></p>

<p>Looks like it correctly recognizes my object, but then outputs nothing.</p>
