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

Commit 9475328

Browse files
drewbarbspetebacondarwin
authored andcommitted
docs(ngController): global controller fns disabled by default
Update doc to reflect 3f2232b, which disabled use of global controller constructors (by default). Closes #8466
1 parent 91d5640 commit 9475328

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/ng/directive/ngController.js

+10-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,16 @@
2323
*
2424
* @element ANY
2525
* @scope
26-
* @param {expression} ngController Name of a globally accessible constructor function or an
27-
* {@link guide/expression expression} that on the current scope evaluates to a
28-
* constructor function. The controller instance can be published into a scope property
29-
* by specifying `as propertyName`.
26+
* @param {expression} ngController Name of a constructor function registered with the current
27+
* {@link ng.$controllerProvider $controllerProvider} or an {@link guide/expression expression}
28+
* that on the current scope evaluates to a constructor function.
29+
*
30+
* The controller instance can be published into a scope property by specifying
31+
* `ng-controller="as propertyName"`.
32+
*
33+
* If the current `$controllerProvider` is configured to use globals (via
34+
* {@link ng.$controllerProvider#allowGlobals `$controllerProvider.allowGlobals()` }), this may
35+
* also be the name of a globally accessible constructor function (not recommended).
3036
*
3137
* @example
3238
* Here is a simple form for editing user contact information. Adding, removing, clearing, and

0 commit comments

Comments
 (0)