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

Commit

Permalink
fix(docs): indicate support for passing a string as the controller
Browse files Browse the repository at this point in the history
…property on $routeProvider's route object
  • Loading branch information
briceburg authored and mhevery committed Aug 31, 2012
1 parent 1b34c6d commit 9a710c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ng/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9a710c7

Please sign in to comment.