Update ionic
Use resolve in controllers