AngularJS $location.path(path) not updating at first
I have a piece of code where I call $location.path(name) and nothing seems to happens (at first). I can call console.log($location.path()) and it does show the new path -- but the view doesn't change. Chain of events (some asynchronous): I have two controllers (and matching views), MainCtrl and CpugraphCtrl, and a Service GetDataService and one external data API (Google). button in Main view calls function in MainCtrl that calls function in GetDataService that calls google client API gapi.client.load() with a callback to function in GetDataService, which uses $rootScope.$broadcast('GraphUpdate