I have seen that the call binding has been moved to the package @aurelia/compact-v1. From my understanding, this package is just for migration purpose and the call binding has been deprecated.
Is it correct?
After some tests I have found that in Aurelia 2 the call binding can be replaced by binding to arrow function:
Hi @mroeling,
thanks for your reply, but I am not migrating an application from v1 to v2.
I am starting a new application and I would like to use only Aurelia 2 without the migration library @aurelia/compact-v1.
Since the call binding has been removed from Aurelia 2, I think that in the documentation is missing how to manage custom element callbacks (or events) in the proper way.
Anyway I still feel confused reading the documentation because it says that .call has been deprecated but not already removed. It’s not clear that for using it you need the @aurelia/compact-v1 package until you go to the migration documentation, and even reading that I did not understood that the package is required for using .call because it focuses on the changes about the management of the $event passed to the callback function.
For resolving the compilation error AUR0713 I needed to check the differences in the source code between the beta and the last alpha
Anyway, thank you for the support. I will read the docs with more attention.