I need to use this route '/', but this route must use a component which is selected after auth validation.
I want to do what Facebook does. When you are about to log in, the URL is "facebook.com" and also is "facebook.com" when you are at the main page.
So, what I've been trying what is this answers says: https://stackoverflow.com/a/49095103/9588225
But the problem is that I get this error: "circular dependency injection" because of the injection in the matcher.
I would like to know if there is another way to inject a service in a function or if there is some way to validate that.
Thanks a lot.