dependency-injection icon indicating copy to clipboard operation
dependency-injection copied to clipboard

Backport `resolve` from Aurelia 2

Open m-gallesio opened this issue 9 months ago • 0 comments

Due to breaking changes in TS decorators, decorators on constructor parameters will not work anymore in Aurelia 2.

Aurelia 2 provides a resolve function which allows constructor parameter injection to be replaced with property injection.

I find this approach more scalable since it removes the need to override constructors when adding new injected services.

Per this discussion following @bigopon's suggestion I propose backporting resolve to Aurelia 1 if the required effort is not overwhelming. This would also help developers to prepare their applications for Aurelia 2.

m-gallesio avatar Apr 29 '24 12:04 m-gallesio