diff --git a/aio/content/guide/dependency-injection.md b/aio/content/guide/dependency-injection.md index 1d6a62c1ed..2fc4a9fdd0 100644 --- a/aio/content/guide/dependency-injection.md +++ b/aio/content/guide/dependency-injection.md @@ -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. diff --git a/aio/content/guide/http.md b/aio/content/guide/http.md index 1a0d32ae4c..9024405b16 100644 --- a/aio/content/guide/http.md +++ b/aio/content/guide/http.md @@ -750,7 +750,7 @@ with the injected `MessageService`. header="app/http-interceptors/logging-interceptor.ts)"> -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`. diff --git a/packages/router/src/interfaces.ts b/packages/router/src/interfaces.ts index 03b70b5b3c..522f64953f 100644 --- a/packages/router/src/interfaces.ts +++ b/packages/router/src/interfaces.ts @@ -264,7 +264,7 @@ export type CanDeactivateFn = /** * @description * - * Interface that class can implement to be a data provider. + * Interface that classes can implement to be a data provider. * * ``` * class Backend {