If ng-content has content or empty Angular2 : <p>I am trying to understand how to create an if to show when a <code>ng-content</code> is empty.</p>

<pre><code>&lt;div #contentWrapper [hidden]="isOpen"&gt;
    &lt;ng-content &gt;&lt;/ng-content&gt;
&lt;/div&gt;

&lt;span *ngIf="contentWrapper.childNodes.length == 0"&gt;
    &lt;p&gt;Display this if ng-content is empty!&lt;/p&gt;
&lt;/span&gt;
</code></pre>

<p>I've tried to use that one to show a display data when the content is empty but even if the information is empty doesn't show the <code>&lt;span&gt;</code> tag</p>

<p>Thanks, always grateful for your help. </p>
