title: Angular2: variable scope inside template
body: <p>In angular2 parent component, I have the following code, imgs is a private class variable. The below code can let image variable passed to its child component. That's exactly what I want.</p>
  
  <p>However, I am confusing about the scope of image variable. It doesn't have any access modifier like public or private, but it acts like public variable. Can anyone explain how it works?</p>
  
  <pre><code>&lt;li *ngFor="let image of imgs"&gt;
      &lt;child [image]="image"&gt;&lt;/child&gt;
  &lt;/li&gt;
  </code></pre>