i have installed the polymer starter kit and once i load the starter kit every thing gets loaded properly and the url looks like http://127.0.0.1:8887/ then once i click on any view that page gets open and url changes to http://127.0.0.1:8887/view1 but if i reload the browser now, instead of showing the same page it displays the entry not found error.i have tried searching over internet for solution but i didn't find one.what should i do to fix it.
相关问题
- How can I dynamically add items into paper-dropdow
- How can I dynamically add items into paper-dropdow
- 2 way data-binding between a polymer component and
- Shadow DOM CSS Styling from outside is not working
- How to get Polymer 2.0 ES5 elements working with v
相关文章
- Access shadow DOM properties (polymer) with javasc
- document.querySelector() returns null
- Updating Polymer component via Websocket?
- polymer duplicate element content
- Where is it best to handle the business logic in m
- How do you bind Polymer elements to a Model in ASP
- Polymer 2.0: Notify and reflect to attribute
- Polymer paper-dialog position
When you refresh the page (http://127.0.0.1:8887/view1) you request the
view1
resource from the server, but the server can't find it because there isn't. That path (.../view1
) is only recognized by the polymer app itself and not the server.Try using hash in the path. Add the
use-hash-as-path
attribute to yourapp-location
element inside the main page.So, it should look like this:
EDIT
It is not enough to add the
use-hash-as-path
property. You will also need to change slightly thehref
in the menu items.href="/view1"
tohref="#/view1"
The code with more details: