Skip to content

Commit 3a7b352

Browse files
committed
2025-09-service-decorator: fix headings
1 parent f5495ab commit 3a7b352

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blog/2025-09-service-decorator/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Developing such a custom decorator isn't completely trivial, especially since An
116116
Let's look at a few possible approaches:
117117

118118

119-
### Idea 1: Inheriting from `@Injectable`
119+
## Idea 1: Inheriting from `@Injectable`
120120

121121
A logical idea would be to annotate a base class with `@Injectable()` and extend it:
122122

@@ -332,7 +332,7 @@ so `reflect-metadata` is usually unnecessary in production.
332332
Using this library increases bundle size, which modern Angular projects aim to avoid.
333333
I therefore didn't pursue this further and don't want to reintroduce `reflect-metadata` to my projects.
334334

335-
### Idea 5: The final idea: Dependency injection with `inject()`
335+
## Idea 5: The final idea: Dependency injection with `inject()`
336336

337337
Can we make it even simpler, without manually listing constructor dependencies?
338338
This is where Angular's new `inject()` function comes in (which didn't exist in 2020).

0 commit comments

Comments
 (0)