Firebase Simplelogin

AngularJS $location Not Changing the Path by Eric on February 1, 2020

In my adventures learning AngularJS I am confronted with strange problems all the time which is a really great thing.  I love learning how to do new and intersting things in different programming environments.  Today I was having problems with my URL not forwarding correctly on a callback method.  Once a user was logged in I wanted the URL to forward to another page.  I was using $location.path and setting it to a URL that was defined in my $routeProvider but it wasn't actually going to that page. A quick Google search led me to this Stack Overflow page, AngularJS $location not changing the path, with the exact problem I was having.  The answer, it turns out, is to add $scope.apply() after any changes you've made.  This does a refresh on the scope and applies any changes you've made that may not have been updated.  The answer describes a conflict with another library in his case jQuery.  I am using Firebase to log the user in and I believe the conflict is there. Here is my code an...