Relative Content

Tag Archive for angulardependency-injectioninjectable

What does an empty @Injectatble() decorator actually mean in Angular?

I’m not regular with Angular development. One thing I learnt about the @Injectable() decorator is that it means – “this class can have/take injected dependencies” and not “this class can be injected as a dependency”. I cannot refer to any specific source right away (bad memory, getting old), but it was from articles online and may be some tutorials. I’m talking about an empty @Injectable() by the way, not about one with the provided-in property.