olov/ng-annotate — pull request #14 by duncanbeevers (2014-04-30 20:25:51+00:00)
Title: Annotate single-argument state declarations

Annotate single-argument form of state declarations.

Consider this unannotated form:
```javascript
$stateProvider.state({
name: "myState",
controller: function($scope) { ... }
});
```

Annotation should be as follows:
```javascript
$stateProvider.state({
name: "myState",
controller: ["$scope", function($scope) { ... }]
});
```

We could potentially scold the user if they attempt to use this without including a `name` key in the object literal, but that seems out of scope for this PR.