bergben / ng2-page-transition

Simple Angular2 component to create a page transition animation on route changes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When guard is in place page is displayed with incorrect transition state

FastAndFluid opened this issue · comments

When I navigate to a page that has a guard on it (eg if the user is not logged in) the navigation locks on the original page in its end transition state so eg if I transition from page 1 to page 2 and page 2 has a canActivate guard that returns false the original page is displayed but with an opacity that makes it barely legible. Can you advise how to best deal with this scenario, and when you have a demo perhaps demonstrate it?

This should be fixed with 0.2.6 by adding NavigationCancel as a trigger too, thanks for reporting the issue!