Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport resolve from Aurelia 2 #227

Closed
m-gallesio opened this issue Apr 29, 2024 · 0 comments · Fixed by #228
Closed

Backport resolve from Aurelia 2 #227

m-gallesio opened this issue Apr 29, 2024 · 0 comments · Fixed by #228

Comments

@m-gallesio
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant