From 9a710c788d880785d2b02a9c5411eb15e9c278bf Mon Sep 17 00:00:00 2001 From: Brice Burgess Date: Wed, 18 Jul 2012 14:21:03 -0500 Subject: [PATCH] fix(docs): indicate support for passing a string as the `controller` property on $routeProvider's route object --- src/ng/route.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ng/route.js b/src/ng/route.js index f488ebf44324..b6b483aae026 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.