Comment on Classy: Cleaner class-based controllers for AngularJSparentComments−camus212yAfaik you cant declare anonymous classes in typescript,let alone wrapping them in a closure.No problem with Coffeescript. module.controller 'MainCtrl', class constructor:($scope,bar,baz)-> $scope.message="foo" @$inject = ['$scope','bar','baz'] that's why i prefer the later.types or not.−Keats12yI don't use anonymous classes for controllers so that's not an issue for me but if you want to use them, I don't think there's a way to do it in typescript
Comments
Afaik you cant declare anonymous classes in typescript,let alone wrapping them in a closure.
No problem with Coffeescript.
that's why i prefer the later.types or not.I don't use anonymous classes for controllers so that's not an issue for me but if you want to use them, I don't think there's a way to do it in typescript