Angular service to control valid route changes