Angular service for wait