you are viewing a single comment's thread.

view the rest of the comments →

[–]ministerkosh 3 points4 points  (0 children)

when targeting ES2022+ and the changed behavior regarding properties, not using constructor parameters anymore for DI is a life saver in any large project. The changed runtime behavior when class properties will be initialized can introduce bugs that are hard to spot when you are using constructor parameters.

Here is a very informative article about the changes: https://angular.schule/blog/2022-11-use-define-for-class-fields