From 19f76a822210b11111a10e5b79fe29edd81cce88 Mon Sep 17 00:00:00 2001 From: sphawkcn Date: Sun, 29 Mar 2020 16:58:08 +0800 Subject: [PATCH] =?UTF-8?q?"it"=20=E5=B9=B6=E9=9D=9E=E6=8C=87=20"product"?= =?UTF-8?q?=20=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原文:`Define the product property and inject the ActivatedRoute into the constructor by adding it as an argument within the constructor's parentheses.` 如果翻译为:”定义 product 属性,并把它加入构造函数括号中作为参数,以便把 ActivatedRoute 注入到构造函数中。“,则语意上是把 product 属性加入构造函数。实际不是,实际是把 `route` 加入构造函数中。 原文中的 `it` 不是指代 `product`,而是指代路由对象。 --- aio/content/start/routing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/start/routing.md b/aio/content/start/routing.md index b69be1f59c..2106a0d90c 100644 --- a/aio/content/start/routing.md +++ b/aio/content/start/routing.md @@ -118,7 +118,7 @@ The product details component handles the display of each product. The Angular R 1. Define the `product` property and inject the `ActivatedRoute` into the constructor by adding it as an argument within the constructor's parentheses. - 定义 `product` 属性,并把它加入构造函数括号中作为参数,以便把 `ActivatedRoute` 注入到构造函数中。 + 定义 `product` 属性,并将路由作为参数添加到构造函数的括号中,以便把 `ActivatedRoute` 注入到构造函数中。