title: Import object in class using TypeScript
body: <p>I am new to Javascript and TypeScript and I am wondering if it is possible to do some kind of dependency injection (maybe using require.js)</p>
  
  <p>I have two classes in same module</p>
  
  <pre><code>module MyWebApp {
      export class ViewRouter {
             ... some class methods
      }
  }
  
  module MyWebApp {
      export class MyViewModel{
          private router: ViewRouter;
  
          constructor(router:ViewRouter router) {
             this.router = router;
          }
      }
  }
  </code></pre>
  
  <p>Every time I need MyViewModel I have to instantiate ViewRouter
  <code>var vm = new MyViewModel(new ViewRouter());</code></p>
  
  <p>Is there any way around this? I thought that Require.js could help me solve my problem but I don't know how to use it with TypeScript.</p>
  
  <p>Thank you.</p>