monterail/guidelines — pull request #149 by teamon (2013-07-08 12:14:22+00:00)
Title: Use array notation instead of $inject

Instead of:

```coffee
@MyCtrl = ($scope, $http) ->
$scope.foo = 1

@MyCtrl.$inject = ["$scope", "$http"]
```

use:

```coffee
@app.controller "MyCtrl", ["$scope", "$http", ($scope, $http) ->
$scope.foo = 1
]
```

and for long list of dependencies use

```coffee
@app.controller "MyCtrl", [
"$scope", "$http", "$timeout", "$q", "$location",
($scope, $http, $timeout, $q, $location) ->
$scope.foo = 1
]
```

Note that the body is indented more than with single line syntax (due to coffee rules)