title: How to pass context to Angular 5 template from *ngIf
body: <p>Angular's <a href="https://angular.io/api/common/NgTemplateOutlet" rel="noreferrer">NgTemplateOutlet</a> allows you to pass a context to the outlet for property binding.</p>
  
  <pre><code>&lt;ng-container *ngTemplateOutlet="eng; context: {$implicit: 'World'}"&gt;&lt;/ng-container&gt;
  &lt;ng-template #eng let-name&gt;&lt;span&gt;Hello {{name}}!&lt;/span&gt;&lt;/ng-template&gt;
  </code></pre>
  
  <p>Angular's <code>*ngIf</code> allows you to embed one template or another based on a boolean condition:</p>
  
  <pre><code>&lt;ng-container *ngIf="isConditionTrue; then one else two"&gt;&lt;/ng-container&gt;
  &lt;ng-template #one&gt;This shows when condition is true&lt;/ng-template&gt;
  &lt;ng-template #two&gt;This shows when condition is false&lt;/ng-template&gt;
  </code></pre>
  
  <p>How can I pass context to these templates referred to within the <code>*ngIf</code> syntax?</p>