I have seen code examples for v2 routing where the the route to a component can be configured in a decorator on the component’s class:
@route({path: '...', settings... )
Is that ready? I can’t figure out where to load the decorator from.
I have seen code examples for v2 routing where the the route to a component can be configured in a decorator on the component’s class:
@route({path: '...', settings... )
Is that ready? I can’t figure out where to load the decorator from.
It’s not in yet. Planned for alpha, though.
To anyone else coming across this thread, the route
decorator has been added and is documented in the Aurelia 2 docs.