angular-middleware
angular-middleware copied to clipboard
Global middleware gets called twice in a row initially with ngRoute
In the ngRoute test file, the global middleware gets called twice in a row when initialized. Not sure why, but ui.router doesn't have this behavior. The ui.router configuration calls it once, as it should.