Skip to content

Commit b644b2a

Browse files
authored
fix: add comment clarifying statement
1 parent ed4f317 commit b644b2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export class HttpService<T> {
161161
}
162162
```
163163

164-
> warning **Warning** If your class doesn't extend another class, you should always prefer using **constructor-based** injection.
164+
> warning **Warning** If your class doesn't extend another class, you should always prefer using **constructor-based** injection. The constructor explicitly outlines what dependencies are required and is more difficult to miss than class attributes annotated with `@Inject`.
165165
166166
#### Provider registration
167167

0 commit comments

Comments
 (0)