@route decorator in v2 ready?

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.

2 Likes

It’s not in yet. Planned for alpha, though.

2 Likes

To anyone else coming across this thread, the route decorator has been added and is documented in the Aurelia 2 docs.

1 Like