angular-ui/ui-router — pull request #39 by adrianhara (2013-03-02 11:37:15+00:00)
Title: Added "controllerFactory" property to view configuration, enabling dynamic controller selection

Added support for a "controllerFactory" property on the view configuration. It should be a function returning the controller function. If it is specified, it will be used instead of the usual "controller" property and it allows to choose the controller "dynamically", based on e.g. the $stateParams (which will be passed as the only parameter of the).