title: Angular2, TypeScript, How to read/bind attribute value to component class (undefined in ngOnInit)
body: <p>can someone please advice me how to read/bind attribute value to @component class, which seems to be undefined in ngOnInit method?</p>
  
  <p>Here's a plunker demo:
  <a href="http://plnkr.co/edit/4FoFNBFsOEvvOkyfn0lw?p=preview" rel="noreferrer">http://plnkr.co/edit/4FoFNBFsOEvvOkyfn0lw?p=preview</a></p>
  
  <p>I'd like to read value of "someattribute" attribute</p>
  
  <pre><code>&lt;my-app [someattribute]="'somevalue'"&gt;
  </code></pre>
  
  <p>inside the App class (src/app.ts) ngOninit method.</p>
  
  <p>Thanks!</p>