Created
January 28, 2015 04:03
-
-
Save faceleg/0e523a36c512acfdcda4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.run([ | |
function() { | |
/** | |
* Cause a full page load on every route change. | |
*/ | |
$rootScope.$on('$locationChangeStart', function($event, changeTo, changeFrom) { | |
if (changeTo == changeFrom) { | |
return; | |
} | |
window.location.assign(changeTo); | |
window.location.reload(true); | |
}); | |
}]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ouch, my eyes, but I have had a similar situation.