@@ -7,7 +7,12 @@ block includes
7
7
:marked
8
8
**Angular Modules** help organize an application into cohesive blocks of functionality.
9
9
10
- An Angular Module _class_ is adorned with the **NgModule** decorator that defines metadata about the module.
10
+ An Angular Module is a _class_ adorned with the **@NgModule** decorator function.
11
+ `_@NgModule` takes a metadata object that tells Angular how to compile and run module code.
12
+ It identifies the module's _own_ components, directives and pipes,
13
+ making some of them public so external components can use them.
14
+ It may add service providers to the application dependency injectors.
15
+ And there are more options covered here.
11
16
12
17
This chapter explains how to **create** `NgModule` classes and how to load them,
13
18
either immediately when the application launches or later, as needed, via the [Router](router.html).
@@ -74,10 +79,9 @@ a#angular-modularity
74
79
75
80
An Angular module is a class decorated with `@NgModule` metadata. The metadata:
76
81
77
- * declare which components, directives and pipes _belong together_ .
82
+ * declare which components, directives and pipes _belong_ to the module .
78
83
* make some of those classes public so that other component templates can use them.
79
- * hide other classes as implementation details.
80
- * import other modules with the components, directives and pipes it needs.
84
+ * import other modules with the components, directives and pipes needed by the components in _this_ module.
81
85
* provide services at the application level that any application component can use.
82
86
83
87
Every Angular app has at least one module class, the _root module_.
0 commit comments