a-wc-router
a-wc-router copied to clipboard
Default route for nested routing
I’m integrating AWC Router to https://github.com/fehmi/simply.js
The path="/" is working in main routes but not in nested routes. Is there way to make it work same way with the main routes for nested routes? It's not a big issue, we can load a child home component like below.
<an-outlet><child-home></child-home></an-outlet>
The only downside is we can't import the component dynamicaly like below.
<a-router>
<an-outlet></an-outlet>
<a-route path="/" element="entry-list-component" lazyload="true" import="./entry-list.js"></a-route>
...
</a-router>
Related to: https://github.com/colscott/a-wc-router/issues/2