File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 5
5
* @name ng.directive:ngController
6
6
*
7
7
* @description
8
- * The `ngController` directive assigns behavior to a scope . This is a key aspect of how angular
8
+ * The `ngController` directive attaches a controller class to the view . This is a key aspect of how angular
9
9
* supports the principles behind the Model-View-Controller design pattern.
10
10
*
11
11
* MVC components in angular:
12
12
*
13
- * * Model — The Model is data in scope properties; scopes are attached to the DOM.
14
- * * View — The template (HTML with data bindings) is rendered into the View.
15
- * * Controller — The `ngController` directive specifies a Controller class; the class has
16
- * methods that typically express the business logic behind the application.
13
+ * * Model — The Model is scope properties; scopes are attached to DOM where scope properties
14
+ * are accessed through bindings.
15
+ * * View — The template (HTML with data bindings) that is rendered into the View.
16
+ * * Controller — The `ngController` directive specifies a Controller class; the class contains business
17
+ * logic behind the application to decorate the scope with functions and values
17
18
*
18
19
* Note that an alternative way to define controllers is via the {@link ng.$route $route} service.
19
20
*
You can’t perform that action at this time.
0 commit comments