title: Angular 2 component variable scope and references
body: <p>Is there a way to avoid always having to attach a "this" to referencing private Component variables or functions?</p>
  
  <p>For example, the following will cause a "Cannot find name" error on "foo"</p>
  
  <pre><code>export class SomeComponent {
      private foo = 5;
  
      someMethod(){
          console.log(foo);
      }
  }
  </code></pre>
  
  <p>To fix, I need to attach a "this" to the foo variable, as in:</p>
  
  <pre><code>console.log(this.foo);
  </code></pre>
  
  <p>I'm all for strong identification of variables, but this seems overly strict given the smaller size of most Angular components.</p>