Permalink
Browse files

fix(docs): indicate support for passing a string as the `controller` …

…property on $routeProvider's route object
  • Loading branch information...
1 parent 1b34c6d commit 9a710c788d880785d2b02a9c5411eb15e9c278bf @briceburg briceburg committed with mhevery Jul 18, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/ng/route.js
View
@@ -27,8 +27,9 @@ function $RouteProvider(){
*
* Object properties:
*
- * - `controller` – `{function()=}` – Controller fn that should be associated with newly
- * created scope.
+ * - `controller` – `{(string|function()=}` – Controller fn that should be associated with newly
+ * created scope or the name of a {@link angular.Module#controller registered controller}
+ * if passed as a string.
* - `template` – `{string=}` – html template as a string that should be used by
* {@link ng.directive:ngView ngView} or
* {@link ng.directive:ngInclude ngInclude} directives.

0 comments on commit 9a710c7

Please sign in to comment.