aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/ngController.js
diff options
context:
space:
mode:
authorDean Sofer2013-09-13 05:38:59 -0700
committerPete Bacon Darwin2013-09-13 14:23:32 +0100
commita53d197db3a69b60d946525f3508b32276e215dc (patch)
tree2dd0b5dd328d985ed794d67e0adac8caf9c9ad2d /src/ng/directive/ngController.js
parent2bb0e1a6041a079b4c456eb6bae4ec5a206582eb (diff)
downloadangular.js-a53d197db3a69b60d946525f3508b32276e215dc.tar.bz2
docs(ngController): rephrased the description for clarity
Diffstat (limited to 'src/ng/directive/ngController.js')
-rw-r--r--src/ng/directive/ngController.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/ng/directive/ngController.js b/src/ng/directive/ngController.js
index 47b233f9..b492cabb 100644
--- a/src/ng/directive/ngController.js
+++ b/src/ng/directive/ngController.js
@@ -5,15 +5,16 @@
* @name ng.directive:ngController
*
* @description
- * The `ngController` directive assigns behavior to a scope. This is a key aspect of how angular
+ * The `ngController` directive attaches a controller class to the view. This is a key aspect of how angular
* supports the principles behind the Model-View-Controller design pattern.
*
* MVC components in angular:
*
- * * Model — The Model is data in scope properties; scopes are attached to the DOM.
- * * View — The template (HTML with data bindings) is rendered into the View.
- * * Controller — The `ngController` directive specifies a Controller class; the class has
- * methods that typically express the business logic behind the application.
+ * * Model — The Model is scope properties; scopes are attached to DOM where scope properties
+ * are accessed through bindings.
+ * * View — The template (HTML with data bindings) that is rendered into the View.
+ * * Controller — The `ngController` directive specifies a Controller class; the class contains business
+ * logic behind the application to decorate the scope with functions and values
*
* Note that an alternative way to define controllers is via the {@link ngRoute.$route $route} service.
*
@@ -21,8 +22,8 @@
* @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 further be published into the scope
- * by adding `as localName` the controller name attribute.
+ * constructor function. 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