title: Default array value to class constructor angular 2
body: <pre><code>class DateComponent {
    constructor(public months:string[] = [],public days:number[] = [] , public years:number[] = []) { }
  
  };
  </code></pre>
  
  <p>This is giving me error in Chrome. Says "=" is invalid. I am using angular 2 and typescript and webpack dev server.</p>
  
  <p>How can i pass values to the parameters in constructor?</p>