title: Angular2 @Input and lifecycle hook
body: <p>I have following component:</p>
  
  <pre><code>export class AddressListComponent implements AfterViewInit{   
    @Input() districts: District[] = [];
  
    constructor() { }
  
    ngAfterViewInit() {
      console.log(this.districts);   } }
  </code></pre>
  
  <p>So it console logs districts as empty array, but I send it as input non-empty array and it displays well this html:</p>
  
  <pre><code>&lt;a *ngFor = "let district of districts; let i = index"  class="list-group-item clearfix" &gt;
          WORKS
   &lt;/a&gt;
  </code></pre>
  
  <p>So my question is next: when in the lifecycle hook am I able to console log data from <code>districts</code> array? Because I need to change it before displaying on html</p>