From e09622b049b8c29a1139e22bb6d8b6f8aaa50144 Mon Sep 17 00:00:00 2001 From: Andrew Barbarello Date: Sun, 3 Aug 2014 10:42:17 -0400 Subject: [PATCH] docs(ngController): global controller fns disabled by default Update doc to reflect [3f2232b5](https://github.com/angular/angular.js/commit/3f2232b5a181512fac23775b1df4a6ebda67d018), which disabled use of global controller constructors (by default). --- src/ng/directive/ngController.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/ng/directive/ngController.js b/src/ng/directive/ngController.js index 452f88f260c1..a586bf9ebe0c 100644 --- a/src/ng/directive/ngController.js +++ b/src/ng/directive/ngController.js @@ -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