Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 9a710c7

Browse files
briceburgmhevery
authored andcommitted
fix(docs): indicate support for passing a string as the controller property on $routeProvider's route object
1 parent 1b34c6d commit 9a710c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ng/route.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ function $RouteProvider(){
2727
*
2828
* Object properties:
2929
*
30-
* - `controller` – `{function()=}` – Controller fn that should be associated with newly
31-
* created scope.
30+
* - `controller` – `{(string|function()=}` – Controller fn that should be associated with newly
31+
* created scope or the name of a {@link angular.Module#controller registered controller}
32+
* if passed as a string.
3233
* - `template` – `{string=}` – html template as a string that should be used by
3334
* {@link ng.directive:ngView ngView} or
3435
* {@link ng.directive:ngInclude ngInclude} directives.

0 commit comments

Comments
 (0)