In Aurelia 1 it was possible to have the component class name different from the component filename, this is not possible anymore in Aurelia 2:
It’s not that important for me, I just wanted to ask if this is by design or by mistake?
Thanks for any feedback.
2 Likes
It’s not possible with Aurelia 2 conventions, which is implemented as transpiling, aka static code analysis, not as flexible as Aurelia 1 which implements conventions at runtime.
But you can use explicit @customElement
decorator to do what ever customisation you wanted. The explicit decorator will bypass Aurelia 2 conventions transpiling step.
3 Likes