Skip to content

Commit

Permalink
Updated Angular's documentation link to Angular's new dev docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
cibucristi authored Jan 20, 2024
1 parent 1bce5b0 commit c5f8f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ The `CatsService` is **injected** through the class constructor. Notice the use

#### Dependency injection

Nest is built around the strong design pattern commonly known as **Dependency injection**. We recommend reading a great article about this concept in the official [Angular](https://angular.io/guide/dependency-injection) documentation.
Nest is built around the strong design pattern commonly known as **Dependency injection**. We recommend reading a great article about this concept in the official [Angular](https://angular.dev/guide/di) documentation.

In Nest, thanks to TypeScript capabilities, it's extremely easy to manage dependencies because they are resolved just by type. In the example below, Nest will resolve the `catsService` by creating and returning an instance of `CatsService` (or, in the normal case of a singleton, returning the existing instance if it has already been requested elsewhere). This dependency is resolved and passed to your controller's constructor (or assigned to the indicated property):

Expand Down

0 comments on commit c5f8f7a

Please sign in to comment.