translate mistake

english part: The `:id` in the second route
current translation: 第一个路由中的:id
This commit is contained in:
lin 2017-08-18 17:33:40 +08:00 committed by 雪狼
parent e9e47e645b
commit c628ef0240
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ is the value of the `id` parameter. The corresponding `HeroDetailComponent`
will use that value to find and present the hero whose `id` is 42. will use that value to find and present the hero whose `id` is 42.
You'll learn more about route parameters later in this guide. You'll learn more about route parameters later in this guide.
个路由中的`:id`是一个路由参数的令牌(Token)。比如`/hero/42`这个URL中“42”就是`id`参数的值。 个路由中的`:id`是一个路由参数的令牌(Token)。比如`/hero/42`这个URL中“42”就是`id`参数的值。
此URL对应的`HeroDetailComponent`组件将据此查找和展现`id`为42的英雄。 此URL对应的`HeroDetailComponent`组件将据此查找和展现`id`为42的英雄。
在本章中稍后的部分,我们将会学习关于路由参数的更多知识。 在本章中稍后的部分,我们将会学习关于路由参数的更多知识。