File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
blog/2025-09-service-decorator Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ Developing such a custom decorator isn't completely trivial, especially since An
116116Let's look at a few possible approaches:
117117
118118
119- ### Idea 1: Inheriting from ` @Injectable `
119+ ## Idea 1: Inheriting from ` @Injectable `
120120
121121A 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.
332332Using this library increases bundle size, which modern Angular projects aim to avoid.
333333I 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
337337Can we make it even simpler, without manually listing constructor dependencies?
338338This is where Angular's new ` inject() ` function comes in (which didn't exist in 2020).
You can’t perform that action at this time.
0 commit comments