olov/ng-annotate — pull request #15 by duncanbeevers (2014-04-30 22:44:08+00:00)
Title: Annotate ui-router view resolve blocks

Resolve blocks nested within views are not currently annotated. This PR addresses that.

```javascript
$stateProvider.state({
name: "myState",
views: {
viewa: {
controller: function($scope, paramAlpha, paramBeta) { ... },
resolve: {
paramAlpha: function($stateParams) { ... },
paramBeta: function($stateParams) { ... },
},
viewb: { ... }
}
}
);
```

```javascript
$stateProvider.state({
name: "myState",
views: {
viewa: {
controller: ["$scope", "paramAlpha", "paramBeta", function($scope, paramAlpha, paramBeta) { ... }],
resolve: {
paramAlpha: ["$stateParams", function($stateParams) { ... }],
paramBeta: ["$stateParams", function($stateParams) { ... }],
},
viewb: { ... }
}
}
);
```