fix(docs): indicate support for passing a string as the controller property on $routeProvider's route object

This commit is contained in:
Brice Burgess 2012-07-18 14:21:03 -05:00 committed by Misko Hevery
parent d798423813
commit c28123a872

View file

@ -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.