I would like to resolve the promise that loads the current user for all the pages of my application. Currently I repeat the resolve in every $routeProvider.when()
$routeProvider.when()
The @Josh answer is correct, except you have to invoke originalWhen function differently:
originalWhen.call($routeProvider, path, route);