Refactoring some of the Angular code to not use watches, but instead use root scope to store the users