correction: router sample correction
This commit is contained in:
parent
78fb5708de
commit
3184375783
|
@ -1226,7 +1226,7 @@ h3#merge-hero-routes 把英雄区的路由合并到应用程序的路由中
|
||||||
|
|
||||||
把`app.routes.ts`改成这样:
|
把`app.routes.ts`改成这样:
|
||||||
|
|
||||||
+makeExample('router/ts/app/app.routes.3.ts', '', 'app/app.routes.ts (v.2)')(format=".")
|
+makeExample('router/ts/app/app.routes.2.ts', '', 'app/app.routes.ts (v.2)')(format=".")
|
||||||
|
|
||||||
:marked
|
:marked
|
||||||
We replace the `HeroListComponent` import with an `HeroesRoutes` import.
|
We replace the `HeroListComponent` import with an `HeroesRoutes` import.
|
||||||
|
@ -1561,8 +1561,8 @@ h3#nav-to-list 导航回列表组件
|
||||||
这里是当前版本的范例程序相关文件。
|
这里是当前版本的范例程序相关文件。
|
||||||
|
|
||||||
+makeTabs(
|
+makeTabs(
|
||||||
`router/ts/app/app.component.1.ts,
|
`router/ts/app/app.component.2.ts,
|
||||||
router/ts/app/app.routes.3.ts,
|
router/ts/app/app.routes.2.ts,
|
||||||
router/ts/app/heroes/hero-list.component.1.ts,
|
router/ts/app/heroes/hero-list.component.1.ts,
|
||||||
router/ts/app/heroes/hero-detail.component.1.ts,
|
router/ts/app/heroes/hero-detail.component.1.ts,
|
||||||
router/ts/app/heroes/hero.service.ts,
|
router/ts/app/heroes/hero.service.ts,
|
||||||
|
|
Loading…
Reference in New Issue