erikringsmuth/app-router

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

Open

#44 aperta il 5 dic 2014

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)HTML (83 fork)batch import
bugdesign discussionhelp wanted

Metriche repository

Star
 (608 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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...

Guida contributor