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:
parent
0f9230d018
commit
9873356bd0
|
@ -209,7 +209,7 @@ Learn more in the [Testing](guide/testing) guide.
|
||||||
|
|
||||||
## Services that need other services
|
## 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.
|
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.
|
Here is the revised `HeroService` that injects `Logger`, side by side with the previous service for comparison.
|
||||||
|
|
|
@ -750,7 +750,7 @@ with the injected `MessageService`.
|
||||||
header="app/http-interceptors/logging-interceptor.ts)">
|
header="app/http-interceptors/logging-interceptor.ts)">
|
||||||
</code-example>
|
</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),
|
The RxJS `finalize` operator is called when the response observable either errors or completes (which it must),
|
||||||
and reports the outcome to the `MessageService`.
|
and reports the outcome to the `MessageService`.
|
||||||
|
|
||||||
|
|
|
@ -264,7 +264,7 @@ export type CanDeactivateFn<T> =
|
||||||
/**
|
/**
|
||||||
* @description
|
* @description
|
||||||
*
|
*
|
||||||
* Interface that class can implement to be a data provider.
|
* Interface that classes can implement to be a data provider.
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
* class Backend {
|
* class Backend {
|
||||||
|
|
Loading…
Reference in New Issue