【发布时间】:2018-02-05 19:29:32
【问题描述】:
我用霓虹动画页面创建了不同的页面。
因此,当我使用 href 转到该页面时,它可以正常工作,但是当我尝试重新加载该页面时,出现 404 错误。
这是我的 app.html
<app-location route="{{route}}" use-hash-as-path></app-location>
<app-route
route="{{route}}"
pattern="/:view"
data="{{routeData}}"
tail="{{subroute}}">
</app-route>
<div class="container flex-vertical">
<app-header id="header">
<neon-animated-pages selected="[[routeData.view]]" attr-for-selected="name" fallbackSelection="home" class="fit" selected-attribute="reload">
<app-home-page name="" route="{{subroute}}"></app-home-page>
<app-profil-page name="profil" route="{{subroute}}"></app-profil-page>
<app-setting-page name="settings" route="{{subroute}}"></app-setting-page>
</neon-animated-pages>
</app-header>
</div>
【问题讨论】:
标签: polymer polymer-1.0