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.
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:
Line of error in Ladda Button