title: Accessing ngFor variable in template outside context
body: <p>consider following code:</p>
  
  <pre><code>&lt;div [ngClass]="var.state"&gt;
    &lt;div *ngFor="let var of vars"&gt;{{var.text}}&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Which will fail, due to scoping of <code>var</code> only inside <code>ngFor</code> loop context. As you see I need some partition of <code>var</code> data outside of loop context. Is it possible to enclose it in some template variable of by any other hack?</p>
  
  <p>Note: I know, that this is behavior by design, and above code is simplified (<code>var</code> is needed few levels up).</p>