Transition in beforeModel hook hangs app


#1

my beforeModel hook in the home route looks like this:

beforeModel() {
    this.transitionTo('register');
}

I will add some conditions to when it should do that transition, but for testing purposes, i have it rerouting always.

But when i got to localhost:4200/home, the app hangs and eventually timesout.


#2

There is no problem with the code you posted. This means that the problem is in some different code that you didn’t post.