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

docs(ngController): global controller fns disabled by default #8466

Closed
wants to merge 1 commit 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
10 changes: 6 additions & 4 deletions src/ng/directive/ngController.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@
*
* @element ANY
* @scope
* @param {expression} ngController Name of a globally accessible constructor function or an
* {@link guide/expression expression} that on the current scope evaluates to a
* constructor function. The controller instance can be published into a scope property
* by specifying `as propertyName`.
* @param {expression} ngController Name of a constructor function registered with the current
* {@link ng.$controllerProvider $controllerProvider} or an {@link guide/expression expression} that on the
* current scope evaluates to a constructor function. If the current `$controllerProvider` is configured to
* use globals (via {@link ng.$controllerProvider#allowGlobals $controllerProvider.allowGlobals()}), this may
* also be the name of a globally accessible constructor function (not recommended). The controller instance can
* be published into a scope property by specifying `as propertyName`.
*
* @example
* Here is a simple form for editing user contact information. Adding, removing, clearing, and
Expand Down