parent
0a631087fa
commit
7972eccb8d
@ -762,7 +762,7 @@ a#hero-module
|
|||||||
+makeExample('ngmodule/ts/app/hero/hero.module.3.ts', 'class', 'app/hero/hero.module.ts (class)')(format='.')
|
+makeExample('ngmodule/ts/app/hero/hero.module.3.ts', 'class', 'app/hero/hero.module.ts (class)')(format='.')
|
||||||
:marked
|
:marked
|
||||||
It imports the `FormsModule` because the `HeroDetailComponent` template binds with `[(ngModel)]`.
|
It imports the `FormsModule` because the `HeroDetailComponent` template binds with `[(ngModel)]`.
|
||||||
It imports a `routing` object from `hero.routing.ts` just as `ContractModule` and `CrisisModule` do.
|
It imports a `routing` object from `hero.routing.ts` just as `ContactModule` and `CrisisModule` do.
|
||||||
|
|
||||||
The `CrisisModule` is much the same. There's nothing more to say that's new.
|
The `CrisisModule` is much the same. There's nothing more to say that's new.
|
||||||
|
|
||||||
@ -785,7 +785,7 @@ a#shared-module
|
|||||||
* move the `UserService` and `TitleComponent` from `app/` to `app/shared`
|
* move the `UserService` and `TitleComponent` from `app/` to `app/shared`
|
||||||
* delete the `HighlightDirective` classes from `app/` and `app/hero`
|
* delete the `HighlightDirective` classes from `app/` and `app/hero`
|
||||||
* create a `SharedModule` class to own the shared material
|
* create a `SharedModule` class to own the shared material
|
||||||
* updata all other modules to import `SharedModule`
|
* update all other modules to import `SharedModule`
|
||||||
|
|
||||||
Most of this is familiar blocking and tackling.
|
Most of this is familiar blocking and tackling.
|
||||||
.l-sub-section
|
.l-sub-section
|
||||||
|
Loading…
x
Reference in New Issue
Block a user