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

docs($controller): add controllerAs definition #10011

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/ng/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ function $ControllerProvider() {
* * if $controllerProvider#allowGlobals, check `window[constructor]` on the global
* `window` object (not recommended)
*
* If use a string with `controller as` syntax, the controller instance is published into a `scope`
* property, but the `scope` must be injected into `locals` param.
*
* @param {Object} locals Injection locals for Controller.
* @return {Object} Instance of given controller.
*
Expand Down