diff options
| author | Dean Sofer | 2013-09-13 05:38:59 -0700 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-09-13 14:27:26 +0100 | 
| commit | b5d48ee1f0e3eaa046c07568f05ec045a22c901f (patch) | |
| tree | 9fb4541ed4f99182a562869c566346536f507782 /src | |
| parent | 1c010b33aa282e79e0b251e57ba9fbd05a72ac18 (diff) | |
| download | angular.js-b5d48ee1f0e3eaa046c07568f05ec045a22c901f.tar.bz2 | |
docs(ngController): rephrased the description for clarity
Diffstat (limited to 'src')
| -rw-r--r-- | src/ng/directive/ngController.js | 11 | 
1 files changed, 6 insertions, 5 deletions
| diff --git a/src/ng/directive/ngController.js b/src/ng/directive/ngController.js index 122be7c1..3ed6a763 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 ng.$route $route} service.   * | 
