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.
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?
<li *ngFor="let image of imgs">
<child [image]="image"></child>
</li>