docs(aio): add NgModule docs (#20306)

PR Close #20306
This commit is contained in:
Kapunahele Wong
2017-07-04 10:58:20 -04:00
committed by Alex Eagle
parent e64b1e99c2
commit 53f91189a1
217 changed files with 3881 additions and 2460 deletions

View File

@ -173,7 +173,7 @@ and what other files and libraries the app requires.
This information is called _metadata_
Some of the metadata is in the `@Component` decorators that you added to your component classes.
Other critical metadata is in [`@NgModule`](guide/ngmodule) decorators.
Other critical metadata is in [`@NgModule`](guide/ngmodules) decorators.
The most important `@NgModule`decorator annotates the top-level **AppModule** class.
@ -198,7 +198,7 @@ When the browser refreshes, the app should work again. You can edit the hero's n
### Declare _HeroesComponent_
Every component must be declared in _exactly one_ [NgModule](guide/ngmodule).
Every component must be declared in _exactly one_ [NgModule](guide/ngmodules).
_You_ didn't declare the `HeroesComponent`.
So why did the application work?

View File

@ -107,7 +107,7 @@ The `HeroService` is now ready to plug into the `HeroesComponent`.
<div class="alert is-helpful">
Learn more about _providers_ in the [NgModules](guide/ngmodule#providers) guide.
Learn more about _providers_ in the [Providers](guide/providers) guide.
</div>
@ -232,11 +232,11 @@ Find the `getHeroes` method and replace it with the following code
<code-tabs>
<code-pane title="hero.component.ts (Observable)"
<code-pane title="heroes.component.ts (Observable)"
path="toh-pt4/src/app/heroes/heroes.component.ts" region="getHeroes">
</code-pane>
<code-pane title="hero.component.ts (Original)"
<code-pane title="heroes.component.ts (Original)"
path="toh-pt4/src/app/heroes/heroes.component.1.ts" region="getHeroes">
</code-pane>