title: How to access class member from function in method class in typescript
body: <p>I have this typescript code:</p>
  
  <pre><code>    module MyPage {
  
      export class MyVm {
  
          ToDo : string;
  
          Load() {
              //can access todo here by using this:
              this.ToDo = "test";
  
              $.get("GetUrl", function (servertodos) {
                  //but how do I get to Todo here??
                  this.ToDo(servertodos); //WRONG ToDo..
              });
          }
      }
  }
  </code></pre>
  
  <p>The question is, how do I access the todo member field in the $.get callback? </p>