fix: 语法调整

This commit is contained in:
雪狼 2020-03-29 22:04:37 +08:00 committed by GitHub
parent 19f76a8222
commit 4331f560c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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` 作为参数添加到构造函数的括号中,以便把它注入到构造函数中。
<code-example header="src/app/product-details/product-details.component.ts" path="getting-started/src/app/product-details/product-details.component.1.ts" region="props-methods">
</code-example>