Closed adrianenriquez closed 9 years ago
A week ago I would have said it would be possible, but then I started working on core-animated-pages
support.
core-animated-pages
extends core-selector
.
https://www.polymer-project.org/docs/elements/core-elements.html#core-selector
<core-selector selected="0">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
</core-selector>
Now imagine the core-selector
is the app-router
/ core-animated-pages
and each div
is a page (app-route
).
I really wish core-selector
wasn't the underlying component of core-animated-pages
. It forces your HTML into a specific structure to get animations. This layout is what prevents hiding the app-route
s.
I'm closing this as there really isn't any way to hide routes unless you use a pure JS router. That may be the way things go if Polymer ends up adopting ES6 modules in the end. We'll have to wait and see.
Hi @erikringsmuth,
This app-router is awesome. However I just want to ask if there's a way to hide the routes inside index.html. The routes are exposed when inspecting the code.
Thanks.