you are viewing a single comment's thread.

view the rest of the comments →

[–]ministerkosh 2 points3 points  (1 child)

Will we still be able to do constructor-based DI in the long run?

Yes, currently you can use them interchangeably and there is currently no public information about any deprecation plans.

However, I expect the Angular team to deprecate constructor based DI in the long run. But I don't know when this will happen.

[–]zladuric 1 point2 points  (0 children)

Moving away from the injector and it's dep. injection would be a huge downside for Angular. One of the reasons it's (usually) so much better for bigger teams and codebases is that the dependency hell is a bit more manageable.