Skip to content

Instantly share code, notes, and snippets.

@thekarel
Created October 25, 2013 11:54
Show Gist options
  • Save thekarel/7153493 to your computer and use it in GitHub Desktop.
Save thekarel/7153493 to your computer and use it in GitHub Desktop.
scope.$on('$locationChangeStart', function (event, newLoc, oldLoc){
console.log('changing to: ' + newLoc);
});
scope.$on('$locationChangeSuccess', function (event, newLoc, oldLoc){
console.log('changed to: ' + newLoc);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment