diff options
| author | Brice Burgess | 2012-07-18 14:21:03 -0500 |
|---|---|---|
| committer | Misko Hevery | 2012-08-30 22:38:53 -0700 |
| commit | c28123a8727904d0febe509f9c81e8b54471ccb6 (patch) | |
| tree | f98fbfc1182c7c270d121041aadb3612cdbd112d | |
| parent | d798423813a0967246642daf917c8556ae264db8 (diff) | |
| download | angular.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.js | 5 |
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. |
