title: angular2 ng-container how to use dynamic ngTemplateOutletContext
body: <p>I'm trying to use ng-container with NgTemplateOutlet (<a href="https://angular.io/docs/ts/latest/api/common/index/NgTemplateOutlet-directive.html" rel="noreferrer">https://angular.io/docs/ts/latest/api/common/index/NgTemplateOutlet-directive.html</a>)</p>
  
  <pre><code>      &lt;div *ngFor="let child of children; let i=index"&gt;
        &lt;ng-container *ngTemplateOutlet="inputTpl; { $implicit: child, index: i }"&gt;&lt;/ng-container&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>Thie results in the error </p>
  
  <blockquote>
    <p>Unexpected token {, expected identifier, keyword, or string at column 11 in [inputTpl; { $implicit: child, index: i }] </p>
  </blockquote>
  
  <p>When I use 'context:' like in the docs, this leads to</p>
  
  <blockquote>
    <p>Can't bind to 'ngTemplateOutletContext' since it isn't a known property of 'ng-container'</p>
  </blockquote>
  
  <p>If I use a object declared in my ts file and set it instead of my Object, everything is working fine. Moreover this is also working fine:</p>
  
  <pre><code>      &lt;div *ngFor="let child of children; let i=index" class="form-group"&gt;
        &lt;template [ngTemplateOutlet]="inputTpl" [ngOutletContext]="{ $implicit: child, index: i }" /&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>Does anybody know, how I can use ng-container with *ngTemplateOutlet and ngTemplateOutletContext generated in the html?</p>