-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API RFC #1
Comments
@priandsf a few points that I'd like your thoughts on:
<lwce-route path="/cart">
<lwce-lazy path="path-to-bundle.js" element="commerce-cart"></lwce-lazy>
</lwce-route> |
|
It could possibly be an event, where a component at the bottom of the tree
Yes, I need to understand this better. How LWC compiles the code, the automatic element creation, etc is a bit of a black box to me. I need to learn more about it, so doing this would probably help. I've asked Caridy about the custom elements and shadow roots, and got a cryptic response |
Hey @blittle , |
API Proposal
Requirements
Examples
Accessing route parameters:
Web component prior art
https://vaadin.com/router
Example:
https://www.webcomponents.org/element/@appnest/web-router
Example:
https://github.com/ryansolid/webcomponent-router
is=
web component syntax.
notationExample
Non-web component prior art
Some have route components along with link components. Reach router is interesting in that there is no "route" component, all children of a router component take a prop of "path" and the router could mount any of these components based upon the URL state. This mean "routes" are just any old component.
The text was updated successfully, but these errors were encountered: