title: Can I use Typescript classes as AngularJS controllers using the new 'controller as' syntax
body: <p>I'm working on a web app using AngularJS and Typescript and I'm trying to find the best way to take advantage of Typescript when it comes to defining controllers. Intuitively a controller would just be a TypeScript class but AngularJS wants you to put everything into the $scope variable.</p>
  
  <p>In the lasted Alpha release of AngularJS (1.1.5) they have added a new <a href="http://www.youtube.com/watch?v=tTihyXaz4Bo" rel="nofollow">'controller as' syntax</a>. I've heard that this new syntax should help integrate with languages like Coffeescript and TypeScript but I don't quite understand how. If anyone has a sample of using this new syntax with TypeScript or CoffeeScript or can provide some insight into how it could be done I'd greatly appreciate it.</p>
  
  <p>Thanks!</p>