This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Description
It would be a helpful to have an ng-resolve directive. This directive would allow the injection of locals into controllers set with ng-controller. A similar pattern already exists for the $routeProvider and the $dialogProvider which have a "resolve" option for injecting dependencies.
Here is an example of a custom directive that accomplishes this task: http://jsfiddle.net/majgis/7xRVM/4/