aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrice Burgess2012-07-18 14:21:03 -0500
committerMisko Hevery2012-08-30 22:38:53 -0700
commitc28123a8727904d0febe509f9c81e8b54471ccb6 (patch)
treef98fbfc1182c7c270d121041aadb3612cdbd112d
parentd798423813a0967246642daf917c8556ae264db8 (diff)
downloadangular.js-c28123a8727904d0febe509f9c81e8b54471ccb6.tar.bz2
fix(docs): indicate support for passing a string as the `controller` property on $routeProvider's route object
-rw-r--r--src/ng/route.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ng/route.js b/src/ng/route.js
index f488ebf4..b6b483aa 100644
--- a/src/ng/route.js
+++ b/src/ng/route.js
@@ -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.