修改翻译错误

inject into any class that asks for it应该翻译为“把它注入到任何请求注入的类中”
This commit is contained in:
ChristinaLy 2018-03-22 16:53:22 +08:00 committed by 雪狼
parent ced3662da9
commit 86cc002b7e

View File

@ -170,7 +170,7 @@ Open the `AppModule` class, import the `HeroService`, and add it to the `@NgModu
The `providers` array tells Angular to create a single, shared instance of `HeroService`
and inject into any class that asks for it.
`providers` 数组会告诉 Angular 创建 `HeroService` 的单一、共享的实例,并且把它注入到何请求注入它的类中。
`providers` 数组会告诉 Angular 创建 `HeroService` 的单一、共享的实例,并且把它注入到何请求注入它的类中。
The `HeroService` is now ready to plug into the `HeroesComponent`.