You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: