moff / angular2-ladda

Angular 2 Ladda module
MIT License
97 stars 20 forks source link

Problem with Route Navigate #27

Closed EdisonHarada closed 6 years ago

EdisonHarada commented 6 years ago

In my layout I have two components, one for the menu and one for a page. In my menu component, I have a service to get the User token, if it is invalid I send the User to the "/ login" route. The problem is that some of my pages have the ladda buton, and when my menu component redirects to the "/ login" route the Ladda directive tries to remove it, however it is undefined.

I believe this happens because my redirection was before it started, but I'm still not sure.

Error: image

Line of error in Ladda Button image