olov/ng-annotate — pull request #99 by tyson-benson (2014-11-07 06:50:00+00:00)
Title: Add support for annotating TypeScript classes

Given the following TypeScript:

module myApp {
class myCtrl {
constructor(public $myDependency: any) {
}
}
angular.module('app').controller('myCtrl', myCtrl);
}

Which produces JavaScript like this:

var myApp;
(function (myApp) {
var myCtrl = (function () {
function myCtrl($myDependency) {
this.$myDependency = $myDependency;
}
return myCtrl;
})();
angular.module('app').controller('myCtrl', myCtrl);
})(myApp || (myApp = {}));

I want annotated code like this:

var myApp;
(function (myApp) {
var myCtrl = (function () {
function myCtrl($myDependency) {
this.$myDependency = $myDependency;
}
return myCtrl;
})();
angular.module('app').controller('myCtrl', ["$myDependency", myCtrl]);
})(myApp || (myApp = {}));