|
|
|
|
|
by camus2
4434 days ago
|
|
Afaik 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. |
|