erikringsmuth / app-router

Router for Web Components
https://erikringsmuth.github.io/app-router/
MIT License
610 stars 83 forks source link

How to get the contents of the remaining portion of a globstar route? #140

Open drarmstr opened 8 years ago

drarmstr commented 8 years ago

When defining a route to capture the remaining part of the path in a globstar (**), what is the appropriate mechanism to obtain what the contents of the remaining path are for the user to process? I couldn't find documentation on this and it doesn't appear as if it is actually saved in the code?

For example, given the definition:

<app-router>
    <app-route path="/mypath/**" import="elements/mypath/mypath.html"></app-route>
</app-router>

And the route: /mypath/foo/bar How should the <mypath> element obtain the foo/bar portion since it isn't assigned to a parameter like the :userId syntax.