mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-24 02:10:24 +00:00
fix(docs): indicate support for passing a string as the controller property on $routeProvider's route object
This commit is contained in:
parent
d798423813
commit
c28123a872
1 changed files with 3 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue