docs: fix grammatical errors in the guides and API documentation (#29928)

Fix grammatical errors in the DI and HttpClient guides as well as the Resolve API documentaiton.

There is no associated issue.

PR Close #29928
This commit is contained in:
Trevor Karjanis 2019-04-16 10:13:14 -05:00 committed by Ben Lesh
parent 0f9230d018
commit 9873356bd0
3 changed files with 3 additions and 3 deletions

View File

@ -209,7 +209,7 @@ Learn more in the [Testing](guide/testing) guide.
## Services that need other services
Service can have their own dependencies. `HeroService` is very simple and doesn't have any dependencies of its own. Suppose, however, that you want it to report its activities through a logging service. You can apply the same *constructor injection* pattern,
Services can have their own dependencies. `HeroService` is very simple and doesn't have any dependencies of its own. Suppose, however, that you want it to report its activities through a logging service. You can apply the same *constructor injection* pattern,
adding a constructor that takes a `Logger` parameter.
Here is the revised `HeroService` that injects `Logger`, side by side with the previous service for comparison.

View File

@ -750,7 +750,7 @@ with the injected `MessageService`.
header="app/http-interceptors/logging-interceptor.ts)">
</code-example>
The RxJS `tap` operator captures whether the request succeed or failed.
The RxJS `tap` operator captures whether the request succeeded or failed.
The RxJS `finalize` operator is called when the response observable either errors or completes (which it must),
and reports the outcome to the `MessageService`.

View File

@ -264,7 +264,7 @@ export type CanDeactivateFn<T> =
/**
* @description
*
* Interface that class can implement to be a data provider.
* Interface that classes can implement to be a data provider.
*
* ```
* class Backend {