route life cycle when switching between routes with a resolve in between