erikringsmuth/app-router

core-animated-pages multiple paths match same app-route

Open

#44 创建于 2014年12月5日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)HTML (608 star) (83 fork)batch import
bugdesign discussionhelp wanted

描述

This is an extension of PR https://github.com/erikringsmuth/app-router/pull/43 from @sohjsolwin.

Example router.

<app-router core-animated-pages transitions="cross-fade-all">
  <app-route path="/first" element="first-page"></app-route>
  <app-route path="/second" element="second-page"></app-route>
  <app-route path="/page/:pageNum" element="third-page"></app-route>
</app-router>

Paths /page/1 and /page/2 will both match the last route. The transition between these two pages won't be animated because setting coreAnimatedPages.selected = 3 doesn't change the page.

This may require a big re-think of the app-router / core-animated-pages implementation...

贡献者指南

core-animated-pages multiple paths match same app-route · erikringsmuth/app-router#44 | Good First Issue